import { FC } from 'react'
import { useTranslation } from 'react-i18next'
import Td from '../../components/Td'
import Select from '../../components/Select'
import Input from '../../components/Input'
import Button from '../../components/Button'
import downloadIcon from '../../assets/images/download.svg'
const Records: FC = () => {
    const { t } = useTranslation('global')
    return (
        <div className='mt-4 min-h-[500px]'>
            <div className='flex justify-between items-center'>
                <div>
                    {t('grade-records.all-records')}
                </div>
            </div>
            <div>
                <div className='flex justify-between items-end gap-2 xl:items-end'>
                    <div className='mt-6 xl:mt-0 max-w-[420px] xl:w-[300px] w-full'>
                        <Input
                            variant='search'
                            placeholder={t('grade-records.search')}
                            className='bg-white w-full'
                        />
                    </div>
                    <div className='flex items-center gap-4'>
                        <div className='w-[100px] xl:w-[200px]'>
                            <Select
                                items={[
                                    {
                                        label: 'همه',
                                        value: 'active'
                                    }
                                ]}
                                className='bg-white border'
                            />
                        </div>
                    </div>
                </div>
            </div>
            <div className='relative overflow-x-auto rounded-3xl mt-9 w-full'>
                <table className='w-full text-sm'>
                    <thead className='thead'>
                        <tr>
                            <Td text={t('grade-records.title')} />
                            <Td text={t('grade-records.status')} />
                            <Td text=''>
                                <div className='max-w-[200px] flex justify-center'>
                                    {t('grade-records.record')}
                                </div>
                            </Td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr className='tr'>
                            <Td text={t('grade-records.title')} />
                            <Td text=''>
                                <div className='flex gap-1 !items-center'>
                                    <div className='w-2 h-2 rounded-full bg-green-600'></div>
                                    <div>{t('grade-records.status')}</div>
                                </div>
                            </Td>
                            <Td text=''>
                                <Button className='text-xs px-2 rounded-lg gap-2 max-w-[200px]' label='دانلود' icon={downloadIcon} />
                            </Td>
                        </tr>
                        <tr className='tr'>
                            <Td text={t('grade-records.title')} />
                            <Td text=''>
                                <div className='flex gap-1 !items-center'>
                                    <div className='w-2 h-2 rounded-full bg-yellow-600'></div>
                                    <div>{t('grade-records.status')}</div>
                                </div>
                            </Td>
                            <Td text=''>
                                <Button className='text-xs px-2 rounded-lg  gap-2 max-w-[200px]' label='دانلود' icon={downloadIcon} />
                            </Td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    )
}
export default Records