import { useMemo } from 'react' ; import { mergeOverrides } from 'baseui' ; export const useOverrides = < T > ( defaults , overrides ? ) : T => useMemo ( ( ) => mergeOverrides ( defaults as any , ( overrides ?? { } ) as any ) as any , [ defaults , overrides ] ) ;