"use client"; import { useState } from "react"; import classNames from "classnames"; import { Input } from "./input"; import { Select } from "./select"; interface Props { loading: boolean; onSubmit: (form: FormProps) => void; } export interface FormProps { username?: string; language: Language; } export type Language = "en" | "fr" | "es"; export const Form: React.FC = ({ loading, onSubmit }) => { const [form, setForm] = useState({ username: undefined, language: "en", }); return (

Hugging Face username

setForm({ ...form, username: value })} />

Language