// // Copyright 2026 DXOS.org // import '../../theme/index.css'; import { type Meta, type StoryObj } from '@storybook/react-vite'; import React, { useState } from 'react'; import { expect, userEvent, waitFor, within } from 'storybook/test'; import { sizeRow } from '../../testing/geometry.ts'; import { withLayout, withTheme } from '../../testing/index.ts'; import { SIZE_ARG_TYPES, type SizeArgs, withSizes } from '../../testing/stories.tsx'; import { Button } from '../Button/Button.tsx'; import { Group } from '../Group/Group.tsx'; import * as Typography from '../Typography/Typography.tsx'; import * as Focus from './Focus.tsx'; import { useFocus } from './FocusContext.ts'; type StoryArgs = SizeArgs & Pick; const ITEMS = ['Inbox', 'Drafts', 'Sent', 'Archive']; /** A member that colours its group's ring, as a drop target does while dragged over. */ const Reporter = () => { const { setFocus } = useFocus(); return (