import { Button, Dialog } from '@automattic/components'; import { formatNumber } from '@automattic/number-formatters'; import styled from '@emotion/styled'; import { useTranslate } from 'i18n-calypso'; import { CHARACTER_LIMIT } from './section-types/constants'; const DialogContent = styled.div` padding: 16px; p { font-size: 1rem; color: var( --studio-gray-50 ); } ul { margin-inline-start: 1rem; } li { margin-bottom: 1rem; } `; const DialogButton = styled( Button )` box-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.05 ); border-radius: 5px; padding: ${ ( props ) => ( props.primary ? '10px 64px' : '10px 32px' ) }; --color-accent: var( --studio-blue-50 ); --color-accent-60: var( --studio-blue-60 ); .gridicon { margin-left: 10px; } `; export function ConfirmDialog( { isConfirmDialogOpen, setIsConfirmDialogOpen, onSubmit, }: { isConfirmDialogOpen: boolean; setIsConfirmDialogOpen: ( arg0: boolean ) => void; onSubmit: () => void; } ) { const translate = useTranslate(); const dialogButtons = [ setIsConfirmDialogOpen( false ) }> { translate( 'Cancel' ) } , { translate( 'Submit' ) } , ]; return ( setIsConfirmDialogOpen( false ) } buttons={ dialogButtons } >

{ translate( 'Are you ready to submit your content?' ) }

{ translate( 'If you have reviewed our content guidelines and added your final content to the form, click “Submit” to send us your content. If everything meets our guidelines, we’ll build your new site and email you the details within %d business days. If adjustments are needed, we’ll reach out.', { args: [ 4 ], } ) }

); } export function ContentGuidelinesDialog( { isContentGuidelinesDialogOpen, setIsContentGuidelinesDialogOpen, }: { isContentGuidelinesDialogOpen: boolean; setIsContentGuidelinesDialogOpen: ( arg0: boolean ) => void; } ) { const translate = useTranslate(); return ( setIsContentGuidelinesDialogOpen( false ) } buttons={ [ setIsContentGuidelinesDialogOpen( false ) } > { translate( 'Acknowledge & Continue' ) } , ] } >

{ translate( 'We look forward to building your site!' ) }

{ translate( 'Please review the following content submission guidelines:' ) }

); }