import { Button, FocusModal, Input, Label } from "@medusajs/ui" import { useState } from "react" export default function FocusModalForm() { const [open, setOpen] = useState(false) const [value, setValue] = useState("") function handleSubmit(e: React.FormEvent) { e.preventDefault() setOpen(false) } return (
Create Item
setValue(e.target.value)} placeholder="Enter your name" />
{value && (
Form submitted with name: {value}
)}
) }