import { shallowReactive, type InjectionKey, type Ref } from "vue"; export interface GroupTabBarPortal { active: Readonly>; targets: Map; } export const GROUP_TAB_BAR_PORTAL: InjectionKey = Symbol("dbx:group-tab-bar-portal"); // Moving the existing bars preserves their grouping, search and scroll state. export function createGroupTabBarPortal(active: Readonly>): GroupTabBarPortal { return { active, targets: shallowReactive(new Map()) }; }