import React, {ChangeEvent} from "react"; import {useTranslations} from '@/lib/i18n'; export interface SelectBoxProps { label: string; value: string; } type InputSize = 'sm' | 'md' | 'lg'; const sizeClasses: Record = { sm: 'px-3 py-1.5 text-xs rounded-lg', md: 'px-4 py-2.5 text-sm rounded-xl', lg: 'px-5 py-3 text-base rounded-xl', }; export interface SelectBoxFormProps { onChangeCallBack: (event: ChangeEvent) => void, data: SelectBoxProps[], defaultValue: string | null | undefined, placeholder?: string, disabled?: boolean, size?: InputSize, translate?: boolean } export default function SelectBox( { onChangeCallBack, data, defaultValue, placeholder, disabled, size = 'md', translate = false }: SelectBoxFormProps) { const t = useTranslations(); return ( ) }