import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Icon } from "@powerhousedao/design-system";
export function EditorActionButtons(props) {
    const { onSwitchboardLinkClick, onExport, onClose, onShowRevisionHistory, onShowTimeline, } = props;
    return (_jsxs("div", { className: "flex items-center gap-x-2", children: [onSwitchboardLinkClick && (_jsx("button", { className: "grid size-8 place-items-center rounded-lg border border-gray-200 bg-white text-gray-900 disabled:cursor-not-allowed disabled:text-gray-500", onClick: onSwitchboardLinkClick, disabled: !onSwitchboardLinkClick, children: _jsx(Icon, { name: "Drive", size: 16 }) })), onShowRevisionHistory && (_jsx("button", { className: "grid size-8 place-items-center rounded-lg border border-gray-200 bg-white text-gray-900 disabled:cursor-not-allowed disabled:text-gray-500", onClick: onShowRevisionHistory, disabled: !onShowRevisionHistory, children: _jsx(Icon, { name: "History", size: 16 }) })), onShowTimeline && (_jsx("button", { className: "grid size-8 place-items-center rounded-lg border border-gray-200 bg-white text-gray-900 disabled:cursor-not-allowed disabled:text-gray-500", onClick: onShowTimeline, disabled: !onShowTimeline, children: _jsx(Icon, { name: "Timeline", size: 16 }) })), _jsx("button", { className: "grid size-8 place-items-center rounded-lg border border-gray-200 bg-white text-gray-900", onClick: onClose, children: _jsx(Icon, { name: "XmarkLight", size: 16 }) })] }));
}
//# sourceMappingURL=editor-action-buttons.js.map