qwen-code/packages/web-shell/client/portalRoot.ts
ytahdn 39e3bc0f40
feat(web-shell): add shadcn UI foundation (#6760)
* feat(web-shell): add shadcn UI foundation

* fix(web-shell): address shadcn foundation review

* revert(web-shell): keep generated shadcn components unchanged

* fix(web-shell): activate dark theme and vertical navigation

---------

Co-authored-by: ytahdn <ytahdn@gmail.com>
2026-07-12 13:51:52 +00:00

9 lines
252 B
TypeScript

import { createContext, useContext } from 'react';
export const WebShellPortalRootContext = createContext<HTMLElement | null>(
null,
);
export function useWebShellPortalRoot(): HTMLElement | null {
return useContext(WebShellPortalRootContext);
}