import React, { useState } from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { within, userEvent } from 'storybook/test'; import { Button } from '../../Button'; import { DropdownMenuSearch, type DropdownMenuSearchProps, } from '../DropdownMenuSearch'; import { AutocompleteNoOptions } from '../../AutocompleteNoOptions'; import { Avatar } from '../../Avatar'; import fallbackImage from './fallbackImage.svg'; const costCenterOptions = [ { key: '1', label: 'Marketing' }, { key: '2', label: 'Legal' }, { key: '3', label: 'Office' }, { key: '4', label: 'Platform' }, { key: '5', label: 'Finance' }, { key: '6', label: 'Recruitment' }, { key: '7', label: 'Growth' }, { key: '8', label: 'Management' }, ]; type Option = (typeof costCenterOptions)[number]; const Template = (props: DropdownMenuSearchProps