import React, { useCallback, useState } from 'react'; import PropTypes from 'prop-types'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import CheckBox from '../../../ui/check-box/check-box.component'; import Typography from '../../../ui/typography/typography'; import { TYPOGRAPHY } from '../../../../helpers/constants/design-system'; import Popover from '../../../ui/popover'; import Button from '../../../ui/button'; export default function SnapInstallWarning({ onCancel, onSubmit, snapName }) { const t = useI18nContext(); const [isConfirmed, setIsConfirmed] = useState(false); const onCheckboxClicked = useCallback( () => setIsConfirmed((confirmedState) => !confirmedState), [], ); const SnapInstallWarningFooter = () => { return (
); }; return ( } headerProps={{ padding: [6, 6, 0] }} contentProps={{ padding: [0, 6, 4] }} footerProps={{ padding: [4, 6] }} > {t('snapInstallWarningCheck')}
); } SnapInstallWarning.propTypes = { /** * onCancel handler */ onCancel: PropTypes.func, /** * onSubmit handler */ onSubmit: PropTypes.func, /** * Name of snap */ snapName: PropTypes.string, };