import classNames from 'classnames' import { Button, Card, Checkbox } from 'components/common' import { TERMS_OF_SERVICE } from 'constants/appConstants' import { useState } from 'react' import { Trans, useTranslation } from 'react-i18next' import useStore from 'store' import { DocURL } from 'types/enums/docURL' import styles from './TermsOfService.module.scss' export const TermsOfService = () => { const { t } = useTranslation() const [isFirstAccepted, setIsFirstAccepted] = useState(false) const [isSecondAccepted, setIsSecondAccepted] = useState(false) const onTermsConfirmed = () => { if (!isFirstAccepted && !isSecondAccepted) return localStorage.setItem(TERMS_OF_SERVICE, 'true') useStore.setState({ acceptedTermsOfService: true }) } return (