import * as React from "react"; const MainInsetContext = React.createContext | null>(null); export function MainInsetProvider({ children, mainInsetRef, }: { children: React.ReactNode; mainInsetRef: React.RefObject; }) { return ( {children} ); } /** Ref to the app `
` inset element where shared chrome CSS vars live. */ export function useMainInsetRef() { const ref = React.useContext(MainInsetContext); if (!ref) { throw new Error("useMainInsetRef must be used within MainInsetProvider"); } return ref; }