UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

19 lines (18 loc) 940 B
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 } from '@primer/react'; import { Box } from '@datalayer/primer-addons'; import { RepoPushIcon } from '@primer/octicons-react'; // import { PlayIcon, StopIcon } from '@primer/octicons-react'; // import { notebookStore } from '@datalayer/jupyter-react'; import { useGradeStore } from '../../state'; export const AssignmentEditorToolbar = (props) => { // const { notebookId } = props; // const notebook = notebookStore.getState().selectNotebook(notebookId); const { grade } = useGradeStore(); return (_jsx(Box, { display: "flex", children: _jsx(Box, { children: _jsx(Button, { variant: "invisible", size: "small", leadingVisual: RepoPushIcon, onClick: () => grade(new Date()), children: "Grade" }) }) })); }; export default AssignmentEditorToolbar;