UNPKG

@hhgtech/hhg-components

Version:
24 lines (23 loc) 767 B
import React from 'react'; import { LOCALE } from "../../interfaces/types/Locale"; export type SSOStateType = { locale?: LOCALE; onClose?: (force?: boolean) => void; openCollectInfoPopup?: boolean; setOpenCollectInfoPopup?: (open: boolean) => void; tracking?: { category: string; action: string; }; setTracking: (p: { category: string; action: string; }) => void; }; export declare const SSOStateContext: React.Context<SSOStateType>; export declare const SSOStateProvider: ({ children, locale, onClose, }: { children: React.ReactNode; locale?: LOCALE; onClose?: (force?: boolean) => void; }) => React.JSX.Element; export declare const useSSOState: () => SSOStateType;