UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

13 lines (12 loc) 481 B
import React from 'react'; import Button from 'antd/lib/button'; import DeleteOutlined from '@ant-design/icons/lib/icons/DeleteOutlined'; import { withI18 } from '../../hoc/withI18'; var DeleteButton = function (_a) { var onDelete = _a.onDelete, text = _a.text; return (React.createElement(Button, { onClick: onDelete, type: "primary", danger: true }, text, " ", React.createElement(DeleteOutlined, null))); }; export default withI18(DeleteButton);