import { CategorySelect } from '@/components/transactions/category-select'; import { type Category } from '@/types/category'; import { __ } from '@/utils/i18n'; import { useState } from 'react'; interface BulkCategorySelectProps { categories: Category[]; onCategoryChange: (categoryId: number | null) => void; disabled?: boolean; } export function BulkCategorySelect({ categories, onCategoryChange, disabled = false, }: BulkCategorySelectProps) { const [value, setValue] = useState(''); function handleChange(newValue: string) { setValue(newValue); const categoryId = newValue === 'null' ? null : newValue; onCategoryChange(categoryId); } return ( ); }