UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

22 lines (19 loc) 643 B
import { createContext } from 'react'; export const DualListSelectorContext = createContext<{ isTree?: boolean; hasAnimations?: boolean; }>({ isTree: false, hasAnimations: false }); export const DualListSelectorListContext = createContext<{ setFocusedOption?: (id: string) => void; isTree?: boolean; ariaLabelledBy?: string; focusedOption?: string; displayOption?: (option: React.ReactNode) => boolean; selectedOptions?: string[] | number[]; id?: string; options?: React.ReactNode[]; isDisabled?: boolean; }>({}); export const DualListSelectorPaneContext = createContext<{ isChosen: boolean; }>({ isChosen: false });