import { Select } from '@cap-rel/smartcommon'; // Options simples // Options depuis une API function ProductForm() { const [categories, setCategories] = useState([]); useEffect(() => { api.private.get('categories').json().then(data => { setCategories(data.map(c => ({ value: c.id, label: c.name }))); }); }, []); return (