import { FC } from 'react'

interface StockFilterProps {
    checked: boolean
    onChange: (checked: boolean) => void
}

const StockFilter: FC<StockFilterProps> = ({ checked, onChange }) => {
    return (
        <label className='flex items-center gap-2.5 text-sm text-[#4A4A4A]'>
            <input
                type='checkbox'
                className='size-4 rounded border-border'
                checked={checked}
                onChange={(e) => onChange(e.target.checked)}
            />
            فقط کالاهای موجود
        </label>
    )
}

export default StockFilter
