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

assets.ts

16 lines614 Bytes

1import {
2 createAssetEnvironmentAtoms,
3 createProjectFaviconUrlAtomFamily,
4} from "@t3tools/client-runtime/state/assets";
5​
6import { connectionAtomRuntime } from "../connection/runtime";
7import { projectFaviconCache } from "../assets/projectFaviconCache";
8import { environmentSession } from "./session";
9​
10export const assetEnvironment = createAssetEnvironmentAtoms(connectionAtomRuntime);
11​
12export const projectFaviconUrlAtom = createProjectFaviconUrlAtomFamily({
13 imageCache: projectFaviconCache,
14 createUrl: assetEnvironment.createUrl,
15 preparedConnection: environmentSession.preparedConnectionValueAtom,
16});