mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-12 13:48:35 +02:00
Follows up on https://github.com/Unleash/unleash/pull/4853 to add Biome to the frontend as well.  Added a few `biome-ignore` to speed up the process but we may want to check and fix them in the future.
19 lines
363 B
TypeScript
19 lines
363 B
TypeScript
import { createLocalStorage } from 'utils/createLocalStorage';
|
|
|
|
interface IGlobalStore {
|
|
favorites?: boolean;
|
|
hiddenEnvironments?: Set<string>;
|
|
}
|
|
|
|
export const useGlobalLocalStorage = () => {
|
|
const { value, setValue } = createLocalStorage<IGlobalStore>(
|
|
'global:v1',
|
|
{},
|
|
);
|
|
|
|
return {
|
|
value,
|
|
setValue,
|
|
};
|
|
};
|