mazeof-react
Version:
some goods for your react
35 lines (32 loc) • 820 B
text/typescript
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;
};