mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-19 14:17:53 +01:00
10 lines
273 B
TypeScript
10 lines
273 B
TypeScript
import type { Environment } from '@yaakapp-internal/models';
|
|
import { useAtomValue } from 'jotai';
|
|
import { atom } from 'jotai/index';
|
|
|
|
export const environmentsAtom = atom<Environment[]>([]);
|
|
|
|
export function useEnvironments() {
|
|
return useAtomValue(environmentsAtom);
|
|
}
|