import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { translate as __ } from 'foremanReact/common/I18n'; import EmptyState from 'foremanReact/components/common/EmptyState'; import { foremanUrl, getManualURL } from 'foremanReact/common/helpers'; export const WelcomeEnv = ({ canCreate }) => { const action = canCreate && { title: __('Create Puppet Environment'), url: foremanUrl('/foreman_puppet/environments/new'), }; const description = ( <> , puppetClassesLinkToDocs: ( {__('Puppet classes')} ), }} /> ); return ( ); }; WelcomeEnv.propTypes = { canCreate: PropTypes.bool, }; WelcomeEnv.defaultProps = { canCreate: false, }; export default WelcomeEnv;