import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { MapBasemapControl } from './map-basemap-control'; import type { MapBasemap } from '../map/map-basemap'; const meta: Meta = { title: 'UI/MapBasemapControl', component: MapBasemapControl, parameters: { layout: 'centered' }, }; export default meta; type Story = StoryObj; function Controlled(args: React.ComponentProps) { const [value, setValue] = React.useState('roads'); return (

Base ativa: {value}

); } /** All six base maps. */ export const Default: Story = { args: { value: 'roads', onChange: () => {} }, render: args => , }; /** * A reduced set. Keep `high-contrast` unless you have a specific reason to drop * it — it is the map's accessibility route, not a stylistic extra. */ export const Reduced: Story = { args: { value: 'roads', onChange: () => {}, options: ['roads', 'high-contrast', 'satellite'] }, render: args => , };