import React from "react"; import { CommandBar, CommandButton, Checkbox, // DefaultButton, ICommandBarItemProps, // IIconProps, } from "@fluentui/react"; export interface CommandBarComponentProps { isSchemaEditorOn: boolean; onSchemaEditorChange: () => void; isSchemaSampleDataOn: boolean; onSchemaSampleDataOn: () => void; } export const CommandBarComponent: React.FC = ({ isSchemaEditorOn, onSchemaEditorChange, isSchemaSampleDataOn, onSchemaSampleDataOn, }) => { const leftItems: ICommandBarItemProps[] = [ { key: "use-json-schema", onRender: () => ( ), }, { key: "use-json-schema-sample-data", onRender: () => isSchemaEditorOn && ( ), }, ]; return (
); };