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

import HeaderAnnouncementBar from '../HeaderAnnouncementBar';

export const settingsDocs = {};

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

# HeaderAnnouncementBar
<br />

## `HeaderAnnouncementBars` are used to display an announcement in the header
<br />

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

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

<HeaderAnnouncementBar />
```

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

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

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