refactor: asset select manager (#27330)

This commit is contained in:
Jason Rasmussen
2026-03-30 10:45:57 -04:00
committed by GitHub
parent b09ebb11e9
commit 17d4941089
30 changed files with 77 additions and 112 deletions
-3
View File
@@ -1,4 +1,3 @@
import type { AssetControlContext } from '$lib/types';
import { getContext, setContext } from 'svelte';
export function createContext<T>(key: string | symbol = Symbol()) {
@@ -7,5 +6,3 @@ export function createContext<T>(key: string | symbol = Symbol()) {
set: (context: T) => setContext<T>(key, context),
};
}
export const { get: getAssetControlContext, set: setAssetControlContext } = createContext<AssetControlContext>();