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

linkedEnvironmentPrefill.ts

12 lines529 Bytes

1import type { EnvironmentId } from "@t3tools/contracts";
2import { Atom } from "effect/reactivity";
3​
4/**
5 * A linked machine the add-environment screen opens for, with what the environment that links to
6 * it said about it. Set only by this app; a route names the machine and never supplies an address.
7 */
8export const linkedEnvironmentPrefillAtom = Atom.make<{
9 readonly environmentId: EnvironmentId;
10 readonly label: string;
11 readonly host: string | null;
12} | null>(null).pipe(Atom.withLabel("linked-environment-prefill"));