Spaces:
Running
Running
File size: 676 Bytes
67ea2ab 93233eb 67ea2ab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import { Form } from "@/_types";
export const Brand = ({
form,
setForm,
}: {
form: Form;
setForm: React.Dispatch<React.SetStateAction<Form>>;
}) => {
return (
<div className="w-full">
<label htmlFor="brand_name" className="text-zinc-300 mb-1 block text-sm">
Brand name
</label>
<input
type="text"
id="brand_name"
placeholder="Hugging Face"
value={form.brand_name}
className="border bg-zinc-900 border-zinc-800 rounded-lg py-2 px-4 text-gray-200 outline-none w-full placeholder:text-gray-600"
onChange={(e) => setForm({ ...form, brand_name: e.target.value })}
/>
</div>
);
};
|