import { expect, fn, userEvent, waitFor, within } from "storybook/test"; import type { Meta, StoryObj } from "@storybook/react-vite"; import { type ReactNode, useState } from "react"; import { Button } from "../actions/Button"; import { Code } from "../data/Code"; import { Paragraph, Text } from "../primitives/Text"; import { View } from "../primitives/View"; import { Story } from "../story-components/Story"; import { Box } from "./Box"; import { Disclosure } from "./Disclosure"; type ThisStory = StoryObj; function ToolList(): ReactNode { return ( Read Disclosure.tsx Grep aria-expanded Edit index.ts ); } interface ToolCardProps { tool: string; detail: string; className: string; } function ToolCard({ tool, detail, className }: ToolCardProps): ReactNode { return ( {tool} {detail} ); } function ControlledDisclosure(): ReactNode { const [expanded, setExpanded] = useState(false); return (