import { useState, type InputHTMLAttributes } from "react"; import { Icon } from "./Icon"; import { TooltipTrigger } from "./TooltipTrigger"; import { eyeIcon, eyeOffIcon, informationOutlineIcon } from "./icons"; import styles from "./FormControls.module.scss"; export function TextInput(props: InputHTMLAttributes) { return ; } export function SecretTextInput({ className, ...props }: InputHTMLAttributes) { const [visible, setVisible] = useState(false); return setVisible((current) => !current)}> ; } export function FormField({ label, hint, className, children }: { label: string; hint?: string; className?: string; children: React.ReactNode }) { return {label} {hint && } {children} ; }