mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
* feat(web): bundle and 'sveltify' leaflet * lazy load leaflet components * add correct icon sizes
9 lines
218 B
TypeScript
9 lines
218 B
TypeScript
import { getContext, setContext } from 'svelte';
|
|
|
|
export function createContext<T>(key: string | symbol = Symbol()) {
|
|
return {
|
|
get: () => getContext<T>(key),
|
|
set: (context: T) => setContext<T>(key, context)
|
|
};
|
|
}
|