Files
yaak-mountain-loop/src-web/hooks/useGrpcConnections.ts
2024-10-08 14:16:57 -07:00

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);
}