UNPKG

@localazy/strapi-plugin

Version:

The official Strapi Plugin by Localazy.

16 lines (15 loc) 753 B
import { LocalazyIdentity } from '../modules/user/model/localazy-identity'; import React, { ReactNode } from 'react'; interface LocalazyIdentityContextType { identity: LocalazyIdentity; setIdentity: React.Dispatch<React.SetStateAction<LocalazyIdentity>>; isFetchingIdentity: boolean; setIsFetchingIdentity: React.Dispatch<React.SetStateAction<boolean>>; isLoggedIn: boolean; } declare const LocalazyIdentityContextType: React.Context<LocalazyIdentityContextType | undefined>; declare const LocalazyIdentityProvider: ({ children }: { children: ReactNode; }) => import("react/jsx-runtime").JSX.Element; declare const useLocalazyIdentity: () => LocalazyIdentityContextType; export { useLocalazyIdentity, LocalazyIdentityProvider };