/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { Checkbox, CommandBar } from '@fluentui/react' import type { ComponentStory } from '@storybook/react' import styled from 'styled-components' import { ArqueroTableHeader } from '../../ArqueroTableHeader.js' import type { ArqueroTableHeaderProps } from '../../ArqueroTableHeader.types.js' import { useCheckboxes, useCommandBar, useFarCommandBar, } from './CommandBars.hooks.js' export const CommandBarsStory: ComponentStory = ( args: ArqueroTableHeaderProps, { loaded: { stocks } }: any, ) => { const commandBar = useCommandBar() const farCommandBar = useFarCommandBar() const { near, far, checkboxes } = useCheckboxes() return ( <> {checkboxes.map((checkbox) => ( ))} : undefined} farCommandBar={far ? : undefined} /> ) } const Checkboxes = styled.div` margin: 12px 0 12px 0; display: flex; gap: 32px; `