UNPKG

mazeof-react

Version:
36 lines (35 loc) 934 B
/// <reference types="react" /> import * as cookiesTypes from "./cookiesTypes"; export type NightShift = { sun: { country: string; lo: number; la: number; ref: string; dawn: string; dusk: string; }; }; export type SetTheme = React.Dispatch<any>; export type UseNightShiftTypes = { themes: { theme: string; setTheme: React.Dispatch<React.SetStateAction<string>>; isDarkMode: boolean; handleNightSwitch: () => void; }; cookiesPref: { cookies: { [x: string]: any; }; /** @deprecated The method should not be used. You should pass by setPreferences */ setCookie: cookiesTypes.SetCookie; setPreferences: cookiesTypes.setPreferences; }; }; export type ThemeResolution = { milliseconds: number; cookies: cookiesTypes.Cookies; setTheme: SetTheme; cookiesKey: string; };