mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 21:53:36 +01:00
9 lines
243 B
TypeScript
9 lines
243 B
TypeScript
import type { HttpRequest } from '@yaakapp-internal/models';
|
|
import { atom, useAtomValue } from 'jotai';
|
|
|
|
export const httpRequestsAtom = atom<HttpRequest[]>([]);
|
|
|
|
export function useHttpRequests() {
|
|
return useAtomValue(httpRequestsAtom);
|
|
}
|