import { DeleteOutlined, PlusOutlined } from '@ant-design/icons/lib' import { Button, Card, Checkbox, Form, Input, Popconfirm, Space, Tabs } from 'antd' import { TabPaneProps } from 'antd/lib/tabs' import React from 'react' import { useTranslation } from 'react-i18next' interface Props extends TabPaneProps {} export const HooksTab: React.FC = (props) => { const { t } = useTranslation() return ( {(hooks, { add, remove }) => { return (
{hooks.map((hook, index) => (
 {t('form:hooks.enabled')}
} type={'inner'} extra={
{ remove(index) }} >
} actions={[ remove(index)} />]} >
))} ) }}
) }