Files
negareh-admin/src/pages/product/attribute/AttributeValues.tsx
T
2026-01-25 11:43:57 +03:30

26 lines
701 B
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 { type FC } from 'react'
import { useParams } from 'react-router-dom'
import { useGetAttributeValues } from '../hooks/useProductData'
import CreateValue from '../components/CreateValue'
const AttributeValues: FC = () => {
const { id } = useParams()
const { data, refetch } = useGetAttributeValues(Number(id))
return (
<div className='mt-5'>
<div className='flex justify-between items-center'>
<h1 className='text-lg font-light'>مقادیر</h1>
<CreateValue
id={Number(id)}
refetch={refetch}
/>
</div>
</div>
)
}
export default AttributeValues