import type { InjectionKey, Ref } from 'vue';
import type { ToggleGroupVariants } from '.';

export interface ToggleGroupContext {
  variant: Ref<ToggleGroupVariants['variant']>;
  size: Ref<ToggleGroupVariants['size']>;
}

export const toggleGroupContextKey = Symbol(
  'toggleGroupContext',
) as InjectionKey<ToggleGroupContext>;
