// @flow import * as SETTINGS from 'constants/settings'; import React from 'react'; import { Modal } from 'modal/modal'; import Card from 'component/common/card'; import Button from 'component/button'; import { FormField } from 'component/common/form'; type Props = { doHideModal: () => void, doSetClientSetting: (string, any) => void, }; function ModalAffirmPurchase(props: Props) { const { doHideModal, doSetClientSetting } = props; const [confirmed, setConfirmed] = React.useState(false); function handleConfirmAge() { doSetClientSetting(SETTINGS.SHOW_MATURE, true); doHideModal(); } const title = __('Confirm Your Age'); return (
setConfirmed(!confirmed)} />
} />
); } export default ModalAffirmPurchase;