diff --git a/src/pages/sign-up/components/agreement-step.tsx b/src/pages/sign-up/components/agreement-step.tsx new file mode 100644 index 00000000..5212ce3b --- /dev/null +++ b/src/pages/sign-up/components/agreement-step.tsx @@ -0,0 +1,71 @@ +import Button from '@components/button/button/button'; +import Icon from '@components/icon/icon'; +import CheckboxRow from '@pages/sign-up/components/checkbox-row'; +import { useState } from 'react'; + +interface AgreementStepProps { + next: () => void; +} + +const AgreementStep = ({ next }: AgreementStepProps) => { + const [terms, setTerms] = useState(false); + const [privacy, setPrivacy] = useState(false); + + const isAllChecked = terms && privacy; + + const handleCheckAll = () => { + const next = !isAllChecked; + setTerms(next); + setPrivacy(next); + }; + + const handleCheckTerms = () => { + const next = !terms; + setTerms(next); + }; + + const handleCheckPrivacy = () => { + const next = !privacy; + setPrivacy(next); + }; + + return ( +
+ 서비스 가입을 위해
아래 항목에 동의해주세요.
+