import Bind from "@web-atoms/core/dist/core/Bind"; import XNode from "@web-atoms/core/dist/core/XNode"; import type AtomHtmlEditor from "../AtomHtmlEditor"; export interface ICommand { label?: string; icon?: string; queryState?: string; enabled?: boolean; title?: string; command?: (editor: AtomHtmlEditor) => void; query?: (editor: AtomHtmlEditor) => boolean; } export default function Command({ icon, label, command, queryState = "none", query, ... others }: ICommand) { if (label) { return