import type { Meta, StoryObj } from '@storybook/react'; import React, { useState } from 'react'; import { Navigation } from '../Navigation'; import { NavigationItem } from '../../NavigationItem'; import { SnapshotContainer } from '../../../test-utils/SnapshotsContainer'; const meta: Meta = { title: 'Navigation/Navigation', component: Navigation, }; export default meta; type Story = StoryObj; export const Default: Story = { render: (args) => { const [activeIndex, setActiveIndex] = useState(1); return ( setActiveIndex(1)} /> setActiveIndex(2)} /> setActiveIndex(3)} /> ); }, }; export const Snapshot: Story = { parameters: { chromatic: { disableSnapshot: false }, }, render: () => , };