mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 01:54:23 +08:00
* ref(etl): Rename ETL Replication to Replication and update docs * Fix * Fix * Fix * Fix * Fix
30 lines
905 B
TypeScript
30 lines
905 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="vertical"
|
|
description="A descriptive name to identify this destination"
|
|
>
|
|
<FormControl_Shadcn_>
|
|
<Input_Shadcn_ {...field} placeholder="My destination" />
|
|
</FormControl_Shadcn_>
|
|
</FormItemLayout>
|
|
)}
|
|
/>
|
|
)
|
|
}
|