// * Packages import { usePage } from "@inertiajs/react"; // * Components shadcn import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; // * Other import InputError from "@/back/Components/InputError"; type SimpleSelectProps = { name: string; label: string; placeholder?: string; options?: Record; required?: boolean; disabled?: boolean; selected?: string; // eslint-disable-next-line no-unused-vars setData: (name: string, value: string) => void; }; export default function SimpleSelect({ name, label, placeholder = "ex: administrateur", options = {}, selected, required = true, disabled = false, setData, }: SimpleSelectProps) { const { errors } = usePage().props; return (
); }