import { Button } from '@wordpress/components'; import { useTranslate } from 'i18n-calypso'; import { FunctionComponent } from 'react'; // eslint-disable-next-line @typescript-eslint/no-empty-function const noop = () => {}; interface Props { onApplyClick: () => void; onCancelClick: () => void; applyButtonText: string | null | undefined; cancelButtonText: string | null | undefined; } const DateRangeFooter: FunctionComponent< Props > = ( { onCancelClick = noop, onApplyClick = noop, cancelButtonText, applyButtonText, } ) => { const translate = useTranslate(); const cancelText = cancelButtonText || translate( 'Cancel' ); const applyText = applyButtonText || translate( 'Apply' ); return (