mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 16:46:38 +01:00
10 lines
278 B
TypeScript
10 lines
278 B
TypeScript
import type { HttpResponse } from '@yaakapp-internal/models';
|
|
import { useAtomValue } from 'jotai';
|
|
import { atom } from 'jotai/index';
|
|
|
|
export const httpResponsesAtom = atom<HttpResponse[]>([]);
|
|
|
|
export function useHttpResponses() {
|
|
return useAtomValue(httpResponsesAtom);
|
|
}
|