analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
11 lines • 573 B
TypeScript
import type { StateStorage } from 'zustand/middleware';
/**
* Zustand StateStorage that persists theme state in a cookie scoped to the
* root domain, so the login app (root domain) and the profile apps
* (subdomains) all share the chosen theme. Reads fall back to localStorage
* for users that persisted the theme before the cookie storage existed, and
* writes go to both stores for backward compatibility with older library
* versions that read only localStorage.
*/
export declare const themeCookieStorage: StateStorage;
//# sourceMappingURL=themeStorage.d.ts.map