import { Button, Popconfirm, Space } from 'antd'; import type { SpaceProps } from 'antd'; import classNames from 'classnames'; import React from 'react'; import type { FC } from 'react'; import DragContent from './DragContent'; interface Props { add: () => void; children?: React.ReactNode; columns: AntDesign.TableColumnCheck[]; disabledDelete?: boolean; itemAlign?: SpaceProps['align']; loading?: boolean; onDelete: () => void; prefix?: React.ReactNode; refresh: () => void; setColumnChecks: (checks: AntDesign.TableColumnCheck[]) => void; suffix?: React.ReactNode; } const TableHeaderOperation: FC = ({ add, children, columns, disabledDelete, itemAlign, loading, onDelete, prefix, refresh, setColumnChecks, suffix }) => { const { t } = useTranslation(); return ( {prefix} {children || ( <> )} } > {suffix} ); }; export default TableHeaderOperation;