import type { ComponentProps } from "react"; import { Flex, TooltipProvider, globalCss, theme, } from "@webstudio-is/design-system"; import type { DashboardProject } from "@webstudio-is/dashboard"; import { Header } from "./header"; import { Projects } from "./projects"; import type { User } from "~/shared/db/user.server"; import type { UserPlanFeatures } from "~/shared/db/user-plan-features.server"; import { Resources } from "./resources"; const globalStyles = globalCss({ body: { margin: 0, background: theme.colors.brandBackgroundDashboard, }, }); const Main = (props: ComponentProps) => { return ( ); }; const Section = (props: ComponentProps) => { return ( ); }; type DashboardProps = { user: User; projects: Array; projectTemplates: Array; userPlanFeatures: UserPlanFeatures; publisherHost: string; imageBaseUrl: string; }; export const Dashboard = ({ user, projects, projectTemplates, userPlanFeatures, publisherHost, imageBaseUrl, }: DashboardProps) => { globalStyles(); return (
); };