mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-15 13:12:22 +01:00
12 lines
358 B
TypeScript
12 lines
358 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"]);
|
|
|
|
export const flowsAtom = orderedListAtom("flow", "startedAt", "desc");
|