@mui/base
Version:
A library of headless ('unstyled') React UI components and low-level hooks.
9 lines (8 loc) • 479 B
TypeScript
/// <reference types="react" />
import { ListAction, ListActionContext } from '../useList';
import { ActionWithContext } from '../utils/useControllableReducer.types';
import { MenuInternalState } from './useMenu.types';
export type MenuActionContext = ListActionContext<string> & {
listboxRef: React.RefObject<HTMLElement>;
};
export default function menuReducer(state: MenuInternalState, action: ActionWithContext<ListAction<string>, MenuActionContext>): MenuInternalState;