mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
13 lines
424 B
TypeScript
13 lines
424 B
TypeScript
import { createModelStore } from "@yaakapp-internal/model-store";
|
|
import type { Flow } from "@yaakapp-internal/proxy-lib";
|
|
|
|
type ProxyModels = {
|
|
flow: Flow;
|
|
};
|
|
|
|
export const { dataAtom, applyChange, replaceAll, listAtom, orderedListAtom } =
|
|
createModelStore<ProxyModels>(["flow"]);
|
|
|
|
/** Oldest first, so new traffic arrives at the end of the list */
|
|
export const flowsAtom = orderedListAtom("flow", "startedAt", "asc");
|