import { type InjectionKey, type ComputedRef, inject } from "vue"; import type { TableSettings } from "./types"; import type { State } from "./state"; export const settingsKey = Symbol() as InjectionKey>; export const stateKey = Symbol() as InjectionKey; export const injectState = () => inject(stateKey)!;