mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-07-27 02:46:22 +09:00
17 lines
552 B
TypeScript
17 lines
552 B
TypeScript
import React from "react";
|
|
import { Button, Popconfirm } from "antd";
|
|
import { DeleteOutlined } from "@ant-design/icons";
|
|
import { TooltipPlacement } from "antd/es/tooltip";
|
|
|
|
export default function DeletedConfirm(props: { onConfirm: () => void, placement?: TooltipPlacement }) {
|
|
return <Popconfirm
|
|
title="Delete?"
|
|
okText="Delete"
|
|
okButtonProps={{ danger: true }}
|
|
onConfirm={props.onConfirm}
|
|
placement={props.placement}
|
|
>
|
|
<Button danger icon={<DeleteOutlined />} />
|
|
</Popconfirm>
|
|
}
|