import React, { Fragment } from 'react'; import { useTranslation } from 'react-i18next'; import { getRegistryURL } from '../../utils/url'; import CopyToClipBoard from '../CopyToClipBoard'; import Button from '../../muiComponents/Button'; import CardContent from '../../muiComponents/CardContent'; import { default as Typography } from '../../muiComponents/Heading'; import CardActions from '../../muiComponents/CardActions'; import Text from '../../muiComponents/Text'; import { CardStyled as Card, HelpTitle } from './styles'; export const HELP_TITLE = 'No Package Published Yet.'; export const COMPONENT_HELP_ID = 'help-card__title'; function renderHeadingClipboardSegments(title: string, text: string): React.ReactNode { return ( {title} ); } const Help: React.FC = () => { const registryUrl = getRegistryURL(); const { t } = useTranslation(); return ( {t('help.title')} {t('help.sub-title')} {renderHeadingClipboardSegments(t('help.first-step'), t('help.first-step-command-line', { registryUrl }))} {renderHeadingClipboardSegments(t('help.second-step'), t('help.second-step-command-line', { registryUrl }))} {t('help.third-step')} ); }; export default Help;