import { jsx as _jsx } from "react/jsx-runtime";
/*
 * Copyright (c) 2023-2025 Datalayer, Inc.
 * Distributed under the terms of the Modified BSD License.
 */
import { Button, Box } from '@primer/react';
import { RepoPushIcon } from '@primer/octicons-react';
import { documentStore } from '../../state/index.js';
export const DocumentEditorToolbar = () => {
    return (_jsx(Box, { display: "flex", children: _jsx(Box, { children: _jsx(Button, { variant: "invisible", size: "small", leadingVisual: RepoPushIcon, onClick: () => documentStore.getState().save(new Date()), children: "Save" }) }) }));
};
export default DocumentEditorToolbar;
