Files
supabase/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationNameInput.tsx
Joshen Lim d150246ffb Update layout of existing destination panel + add some improvements (#41429)
* Update layout of existing destination panel + add some improvements

* update icn

* Smol fix
2025-12-17 21:33:23 +08:00

26 lines
806 B
TypeScript

import type { UseFormReturn } from 'react-hook-form'
import { FormControl_Shadcn_, FormField_Shadcn_, Input_Shadcn_ } from 'ui'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
import type { DestinationPanelSchemaType } from './DestinationPanel.schema'
type DestinationNameInputProps = {
form: UseFormReturn<DestinationPanelSchemaType>
}
export const DestinationNameInput = ({ form }: DestinationNameInputProps) => {
return (
<FormField_Shadcn_
control={form.control}
name="name"
render={({ field }) => (
<FormItemLayout label="Name" layout="horizontal">
<FormControl_Shadcn_>
<Input_Shadcn_ {...field} placeholder="My destination" />
</FormControl_Shadcn_>
</FormItemLayout>
)}
/>
)
}