blob: 442759176a01a549da739e8eba17d43672175eec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
import { Checkbox } from '@chakra-ui/react';
import React from 'react';
import { Modal } from '~/components/ui/modal';
import { useRegisterStore } from '../stores/useRegisterStore';
import dynamic from 'next/dynamic';
const PageContent = dynamic(
() => import('@/lib/content/components/PageContent')
);
const TermCondition = () => {
const { isOpenTNC, closeTNC, isCheckedTNC, toggleCheckTNC, openTNC } =
useRegisterStore();
return (
<>
<div className='mt-4 flex items-center gap-x-2'>
<Checkbox
id='tnc'
name='tnc'
colorScheme='red'
isChecked={isCheckedTNC}
onChange={toggleCheckTNC}
/>
<div>
<label htmlFor='tnc' className='cursor-pointer'>
Dengan ini saya menyetujui
</label>{' '}
<span
className='font-medium text-danger-500 cursor-pointer'
onClick={openTNC}
>
syarat dan ketentuan
</span>
<label htmlFor='tnc' className='ml-2 cursor-pointer'>
yang berlaku
</label>
</div>
</div>
<Modal active={isOpenTNC} close={closeTNC}>
<PageContent path='/registerTnd' />
</Modal>
</>
);
};
export default TermCondition;
|