mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-10 17:27:10 +00:00
* 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>
9 lines
252 B
TypeScript
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);
|
|
}
|