import { DrawerFormLayout } from '@nocobase/client-v2';
ctx.viewer.drawer({
width: '50%',
closable: true,
content: () => (
<DrawerFormLayout title={t('Add provider')} onSubmit={handleSubmit}>
<Form form={form} layout="vertical">
<Form.Item name="name" label={t('Name')} rules={[{ required: true }]}>
<Input />
</Form.Item>
</Form>
</DrawerFormLayout>
),
});