import { jsx } from "react/jsx-runtime";
import { forwardRef } from "react";
import { CopyOutlined, DeleteOutlined, DragOutlined, FullscreenOutlined, RedoOutlined, UndoOutlined, ZoomInOutlined, ZoomOutOutlined } from "@ant-design/icons";
import { message } from "antd";
const defaultItems = [
    {
        icon: /*#__PURE__*/ jsx(FullscreenOutlined, {}),
        title: "\u5168\u5C4F"
    },
    {
        icon: /*#__PURE__*/ jsx(UndoOutlined, {}),
        title: "\u64A4\u9500"
    },
    {
        icon: /*#__PURE__*/ jsx(RedoOutlined, {}),
        title: "\u91CD\u505A"
    },
    {
        icon: /*#__PURE__*/ jsx(DeleteOutlined, {}),
        title: "\u5220\u9664"
    }
];
const customItems = [
    {
        icon: /*#__PURE__*/ jsx(CopyOutlined, {}),
        placement: 'bottom',
        title: "\u590D\u5236"
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomInOutlined, {}),
        title: "\u653E\u5927\uFF01"
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomOutOutlined, {}),
        style: {
            color: '#1890ff'
        },
        title: "\u7F29\u5C0F\uFF01"
    },
    {
        type: 'divider'
    },
    {
        icon: /*#__PURE__*/ jsx(DragOutlined, {}),
        title: "\u5FEB\u901F\u5B9A\u4F4D"
    }
];
const dropdownMenuItems = [
    {
        icon: /*#__PURE__*/ jsx(CopyOutlined, {}),
        onClick: ()=>{
            message.info("\u590D\u5236\uFF01");
        },
        label: "\u590D\u5236"
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomInOutlined, {}),
        onClick: ()=>{
            message.success("\u653E\u5927\uFF01");
        },
        label: "\u653E\u5927\uFF01"
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomOutOutlined, {}),
        style: {
            color: '#1890ff'
        },
        onClick: ()=>{
            message.success("\u7F29\u5C0F\uFF01");
        },
        label: "\u7F29\u5C0F\uFF01"
    },
    {
        type: 'divider'
    },
    {
        icon: /*#__PURE__*/ jsx(DragOutlined, {}),
        onClick: ()=>{
            message.loading("\u5FEB\u901F\u5B9A\u4F4Ding");
        },
        label: "\u5FEB\u901F\u5B9A\u4F4D"
    }
];
const BlockToolbar = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx("div", {
        ...props,
        ref: ref
    }));
export { customItems, BlockToolbar as default, defaultItems, dropdownMenuItems };
