mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
9 lines
264 B
TypeScript
9 lines
264 B
TypeScript
import type { GrpcConnection } from '@yaakapp-internal/models';
|
|
import { atom, useAtomValue } from 'jotai/index';
|
|
|
|
export const grpcConnectionsAtom = atom<GrpcConnection[]>([]);
|
|
|
|
export function useGrpcConnections() {
|
|
return useAtomValue(grpcConnectionsAtom);
|
|
}
|