import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import { getKnobs } from '../../../../../tools/knobsHelper';
import { TableContentFromObject, FormOutput } from '../../../../../tools/docTools';

import HeaderAuxiliaryBar from '../HeaderAuxiliaryBar';
import { headerAuxiliaryBarDataMock } from '../../../../../../mocks/components/header';

export const settingsDocs = {};

<Meta
    title="Global Components/Header/Atoms/Header Auxiliary Bar"
    component={HeaderAuxiliaryBar}
    parameters={{
        layout: 'fullscreen'
    }}
/>

# HeaderAuxiliaryBar
<br />

## `HeaderAuxiliaryBars` are used to display the language switcher and quick links
<br />

### Default
<Canvas>
    <Story name="Default">
        <HeaderAuxiliaryBar
            settings={getKnobs(HeaderAuxiliaryBar.schema().form)}
            data={headerAuxiliaryBarDataMock}
        />
    </Story>
</Canvas>


## Usage Example
```jsx
import HeaderAuxiliaryBar
from '@appdirect/sfb-theme-components/src/components/header/atoms/header-auxiliary-bar/HeaderAuxiliaryBar';

<HeaderAuxiliaryBar />
```

## Props
<ArgsTable of={HeaderAuxiliaryBar} />

## Schema
### Form Settings
<table>
    <TableContentFromObject obj={settingsDocs} />
</table>

### Form Output
<FormOutput code={HeaderAuxiliaryBar.schema().form} />
