import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { Box } from '..'; import { SnapshotContainer } from '../../../test-utils/SnapshotsContainer'; import { Select } from '../../Select'; import { action } from 'storybook/actions'; const meta: Meta = { title: 'Data display/Box', component: Box, }; export default meta; type Story = StoryObj; export const Primary: Story = { args: { children: 'Hello World', variant: 'primary', }, }; export const Secondary: Story = { args: { children: 'Hello World', variant: 'secondary', }, }; export const Snapshot: Story = { parameters: { chromatic: { disableSnapshot: false }, }, render: () => ( ), }; const costCenters = [ { key: 'marketing', label: 'Marketing' }, { key: 'legal', label: 'Legal' }, { key: 'office', label: 'Office' }, { key: 'platform', label: 'Platform' }, { key: 'finance', label: 'Finance' }, { key: 'product', label: 'Product' }, { key: 'engineering', label: 'Engineering' }, ]; export const WithDropdownInside: Story = { args: { children: (