import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { MapOverlay } from './map-overlay'; import { MAP_OVERLAY_POSITIONS } from '../map/map-overlay-position'; const meta: Meta = { title: 'UI/MapOverlay', component: MapOverlay, parameters: { layout: 'centered' }, argTypes: { position: { control: 'select', options: MAP_OVERLAY_POSITIONS } }, }; export default meta; type Story = StoryObj; function Surface({ children }: { children: React.ReactNode }) { return (
{children}
); } const Chip = ({ children }: { children: React.ReactNode }) => ( {children} ); /** One anchor, one overlay. */ export const Default: Story = { args: { position: 'top-right', children: Conteúdo ancorado }, render: args => ( ), }; /** All nine anchors at once. */ export const AllAnchors: Story = { render: () => ( {MAP_OVERLAY_POSITIONS.map(position => ( {position} ))} ), };