diff --git a/apps/web/src/pages/dashboard-page.tsx b/apps/web/src/pages/dashboard-page.tsx index 6cae609..d0b73e0 100644 --- a/apps/web/src/pages/dashboard-page.tsx +++ b/apps/web/src/pages/dashboard-page.tsx @@ -1,4 +1,5 @@ import * as React from "react" +import { createPortal } from "react-dom" import { formatForDisplay } from "@tanstack/react-hotkeys" import { LexicalActions, @@ -10,6 +11,37 @@ import { LexicalRoot, } from "@workspace/lexical" import { Button } from "@workspace/ui/components/button" +import { MessageScrollerProvider } from "@workspace/ui/components/message-scroller" +import { + Card, + CardAction, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@workspace/ui/components/card" +import { + InputGroup, + InputGroupAddon, + InputGroupButton, +} from "@workspace/ui/components/input-group" +import { Icon } from "@icones/react" +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuSeparator, + DropdownMenuTrigger, +} from "@workspace/ui/components/dropdown-menu" +import { + GlobeIcon, + ImageIcon, + PaperclipIcon, + PlusIcon, + TelescopeIcon, +} from "@workspace/ui/components/icon" +import { Checkbox } from "@workspace/ui/components/checkbox" const initialEditorHtml = [ "

Welcome to the Lexical editor

", @@ -19,9 +51,87 @@ const initialEditorHtml = [ export function DashboardPage() { const [html, setHtml] = React.useState(initialEditorHtml) + const [portalTarget, setPortalTarget] = React.useState() + + React.useEffect(() => { + setPortalTarget(document.body) + }, []) return (
+ {portalTarget && + createPortal( + + + + CardTitle + CardDescription + CardAction + + + +
+ +
+ + + + + + } + /> + + + + Add Photos & Files + + + + + Create Image + + + + Deep Research + + + + Web Search + + + + + + + Send + + + + + + + , + portalTarget + )} +

Lexical editor