diff --git a/src/app/dashboard/layout.tsx b/src/app/dashboard/layout.tsx index f95dc45..d91b840 100755 --- a/src/app/dashboard/layout.tsx +++ b/src/app/dashboard/layout.tsx @@ -51,6 +51,8 @@ export default async function DashboardLayout({ + + - - - - - -
- - - {children} - - - -
-
-
+ + + + +
+ + {children} + + +
+
@@ -84,6 +82,8 @@ export default async function DashboardLayout({

+
+
diff --git a/src/components/agent/main-content.tsx b/src/components/agent/main-content.tsx index a7f370b..4368df7 100755 --- a/src/components/agent/main-content.tsx +++ b/src/components/agent/main-content.tsx @@ -6,9 +6,9 @@ import { useRenderState } from "./chat-provider" export function MainContent({ children, -}: { - readonly children: React.ReactNode -}) { + className: classNameProp, + ...rest +}: React.ComponentPropsWithRef<"div">) { const pathname = usePathname() const { spec, isRendering } = useRenderState() const hasRenderedUI = !!spec?.root || isRendering @@ -18,6 +18,7 @@ export function MainContent({ return (
@@ -102,9 +103,11 @@ export function NavFiles() { -
- -
+ {storageUsage && ( +
+ +
+ )} ) } diff --git a/src/hooks/use-files.tsx b/src/hooks/use-files.tsx index dacf4e0..7379211 100755 --- a/src/hooks/use-files.tsx +++ b/src/hooks/use-files.tsx @@ -733,6 +733,10 @@ export function useFiles() { return ctx } +export function useFilesOptional() { + return useContext(FilesContext) +} + function sortFiles( files: FileItem[], sortBy: SortField,