import { motion } from "motion/react" import { cn } from "@lib/utils" import { LabeledInput } from "@ui/input/labeled-input" import { Button } from "@ui/components/button" interface InputStepProps { name: string setName: (name: string) => void handleSubmit: () => void isSubmitting: boolean } export function InputStep({ name, setName, handleSubmit, isSubmitting, }: InputStepProps) { return (

What should I call you?

{ if (e.key !== "Enter") return e.preventDefault() if (isSubmitting) return handleSubmit() }, className: "!text-white placeholder:!text-[#525966] !h-[40px] pl-4", }} onChange={(e) => { if (isSubmitting) return setName((e.target as HTMLInputElement).value) }} style={{ background: "linear-gradient(0deg, rgba(91, 126, 245, 0.04) 0%, rgba(91, 126, 245, 0.04) 100%)", }} />
) }