Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

shell.ts

17 lines774 Bytes

1import {
2 createEnvironmentShellAtoms,
3 createEnvironmentShellSummaryAtom,
4 createEnvironmentSnapshotAtom,
5 createShellEnvironmentAtoms,
6} from "@t3tools/client-runtime/state/shell";
7​
8import { environmentCatalog } from "../connection/catalog";
9import { connectionAtomRuntime } from "../connection/runtime";
10​
11export const shellEnvironment = createShellEnvironmentAtoms(connectionAtomRuntime);
12export const environmentShell = createEnvironmentShellAtoms(connectionAtomRuntime);
13export const environmentSnapshotAtom = createEnvironmentSnapshotAtom(environmentShell.stateAtom);
14export const environmentShellSummaryAtom = createEnvironmentShellSummaryAtom({
15 catalogValueAtom: environmentCatalog.catalogValueAtom,
16 shellStateValueAtom: environmentShell.stateValueAtom,
17});