import {
  Meta,
  Title,
  Subtitle,
  Description,
  Primary,
  Controls,
  Stories,
} from '@storybook/addon-docs/blocks';
import * as MapNoticeStories from './map-notice.stories';

<Meta of={MapNoticeStories} />

<Title />
<Subtitle>A persistent badge over the map: provenance, caveat, or attribution.</Subtitle>

<Description />

<Primary />

<Controls />

---

## Variations

<Stories />

---

## AI Best Practices

> [!IMPORTANT]
>
> - **`synthetic` is not a `warning`** — use `variant="synthetic"` for demo or seeded data. `warning` tells the user something is wrong; provenance is a statement of fact, not a problem to fix.
> - **Prefer `<Map attribution>` for licensing credit** — it is placed and sized to the cartographic convention. Reach for `MapNotice` when the badge is about the data, not the basemap.
> - **Keep it to a phrase** — a notice is a label. Anything longer belongs in an `Alert` beside the map.
> - **Overlay needs a positioned ancestor** — the default `layout="overlay"` positions itself absolutely inside the nearest `relative` container.
