mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: asset select manager (#27330)
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user