Files
negareh-admin/src/pages/Features/List.tsx
T
hamid zarghami d1c12f5f79 features
2025-10-20 16:48:06 +03:30

90 lines
3.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Button from '@/components/Button'
import Filters from '@/components/Filters'
import SwitchComponent from '@/components/Switch'
import Table from '@/components/Table'
import { AddSquare, Edit } from 'iconsax-react'
import { type FC } from 'react'
const FeaturesList: FC = () => {
return (
<div className='mt-5'>
<div className='flex justify-between'>
<h1 className='text-lg font-light'>
ویژگی ها
</h1>
<Button
className='w-fit px-6'
>
<div className='flex gap-2 items-center'>
<AddSquare size={18} color='black' />
<div className='text-[13px]'>ویژگی جدید</div>
</div>
</Button>
</div>
<div className='mt-8'>
<Filters
fields={[
{
name: 'search',
type: 'input',
placeholder: 'جستجو'
}
]}
onChange={() => { }}
/>
</div>
<div className='mt-8'>
<Table
columns={[
{
key: 'id',
title: 'شماره',
},
{
key: 'title',
title: 'عنوان',
},
{
key: 'items',
title: 'آیتم ها',
},
{
key: 'status',
title: 'وضعیت',
render: () => {
return (
<SwitchComponent
active={true}
onChange={() => { }}
/>
)
}
},
{
key: 'actions',
title: '',
render: () => {
return (
<Edit size={20} color='#0037FF' />
)
}
},
]}
data={[
{
id: 1,
title: 'رنگ',
items: 'آبی، سبز، قرمز',
status: 'فعال',
}
]}
/>
</div>
</div>
)
}
export default FeaturesList