13 lines
418 B
TypeScript
13 lines
418 B
TypeScript
import { Form, FormProps } from "app/core/components/Form"
|
|
import { LabeledTextField } from "app/core/components/LabeledTextField"
|
|
import { z } from "zod"
|
|
export { FORM_ERROR } from "app/core/components/Form"
|
|
|
|
export function ItemPropForm<S extends z.ZodType<any, any>>(props: FormProps<S>) {
|
|
return (
|
|
<Form<S> {...props}>
|
|
<LabeledTextField name="name" label="Name" placeholder="Name" />
|
|
</Form>
|
|
)
|
|
}
|