import * as React from 'react'; type ChipContextType = { disabled?: boolean; required?: boolean; multiSelect?: boolean; name: string; groupValue: string | null | undefined | Array; onChipChange: ( event: React.SyntheticEvent, chipValue: string | null | undefined ) => void; }; export const ChipContext = React.createContext( {} as ChipContextType ); const useChipContext = (): ChipContextType => { return React.useContext(ChipContext); }; export default useChipContext;