Files
spoon/apps/next/src/components/app-shell/app-shell.tsx
T
Gabriel Brown a6f7ea7f78
Build and Push Spoon Images / quality (push) Successful in 2m22s
Build and Push Spoon Images / build-images (push) Successful in 23m10s
Clean up old stuff & fix ui errors
2026-06-23 14:57:05 -04:00

26 lines
608 B
TypeScript

'use client';
import type { ReactNode } from 'react';
import { usePathname } from 'next/navigation';
export const AppShell = ({ children }: { children: ReactNode }) => {
const pathname = usePathname();
const isWorkspace =
/\/spoons\/[^/]+\/agent\/[^/]+/.test(pathname) ||
/^\/threads\/[^/]+/.test(pathname);
return (
<div className='bg-muted/20 flex-1 border-t'>
<div
className={
isWorkspace
? 'min-w-0 px-3 py-3 md:px-4'
: 'container mx-auto min-w-0 px-4 py-6 md:px-6'
}
>
{children}
</div>
</div>
);
};