import { getContext, setContext } from 'svelte';
const key = Symbol('draw-connection-config-key');
export const provideDrawConnectionConfig = (args) => {
    const current = $derived(args());
    setContext(key, {
        get current() {
            return current;
        },
    });
};
export const useDrawConnectionConfig = () => {
    return getContext(key);
};
