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: '全屏'
    },
    {
        icon: /*#__PURE__*/ jsx(UndoOutlined, {}),
        title: '撤销'
    },
    {
        icon: /*#__PURE__*/ jsx(RedoOutlined, {}),
        title: '重做'
    },
    {
        icon: /*#__PURE__*/ jsx(DeleteOutlined, {}),
        title: '删除'
    }
];
const customItems = [
    {
        icon: /*#__PURE__*/ jsx(CopyOutlined, {}),
        placement: 'bottom',
        title: '复制'
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomInOutlined, {}),
        title: '放大！'
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomOutOutlined, {}),
        style: {
            color: '#1890ff'
        },
        title: '缩小！'
    },
    {
        type: 'divider'
    },
    {
        icon: /*#__PURE__*/ jsx(DragOutlined, {}),
        title: '快速定位'
    }
];
const dropdownMenuItems = [
    {
        icon: /*#__PURE__*/ jsx(CopyOutlined, {}),
        onClick: ()=>{
            message.info('复制！');
        },
        label: '复制'
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomInOutlined, {}),
        onClick: ()=>{
            message.success('放大！');
        },
        label: '放大！'
    },
    {
        icon: /*#__PURE__*/ jsx(ZoomOutOutlined, {}),
        style: {
            color: '#1890ff'
        },
        onClick: ()=>{
            message.success('缩小！');
        },
        label: '缩小！'
    },
    {
        type: 'divider'
    },
    {
        icon: /*#__PURE__*/ jsx(DragOutlined, {}),
        onClick: ()=>{
            message.loading('快速定位ing');
        },
        label: '快速定位'
    }
];
const BlockToolbar = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx("div", {
        ...props,
        ref: ref
    }));
export { customItems, BlockToolbar as default, defaultItems, dropdownMenuItems };
