1 | /// <reference types="react" />
|
2 | import { ListAction, ListActionContext } from '../useList';
|
3 | import { ActionWithContext } from '../utils/useControllableReducer.types';
|
4 | import { MenuInternalState } from './useMenu.types';
|
5 | export type MenuActionContext = ListActionContext<string> & {
|
6 | listboxRef: React.RefObject<HTMLElement>;
|
7 | };
|
8 | export default function menuReducer(state: MenuInternalState, action: ActionWithContext<ListAction<string>, MenuActionContext>): MenuInternalState;
|