import React from 'react' import { __, _n, sprintf } from '@wordpress/i18n' import classnames from 'classnames' import { Badge } from '../../common/Badge' import { Button } from '../../common/Button' import { DEMO_PLAN } from './demoScript' import { languageToSnippetType } from './types' interface DemoPlanCardProps { /** Whether the walkthrough is clicking "Accept & create" right now. */ accepted: boolean } export const DemoPlanCard: React.FC = ({ accepted }) => { const badge = sprintf( /* translators: %d: number of snippets in the bundle. */ _n('Bundle · %d snippet', 'Bundle · %d snippets', DEMO_PLAN.parts.length, 'code-snippets'), DEMO_PLAN.parts.length ) return (

{DEMO_PLAN.title}

{badge}

{DEMO_PLAN.summary}

{__('What will be created', 'code-snippets')}

) }