🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
'use client';
import { ModalHost, ToastHost, TooltipGroup } from '@lobehub/ui';
import { memo, type PropsWithChildren } from 'react';
import WorkbenchLocale from './WorkbenchLocale';
import WorkbenchTheme from './WorkbenchTheme';
interface WorkbenchShellProps extends PropsWithChildren {
enableCustomFonts?: boolean;
locale?: string;
resources?: Record<string, unknown>;
}
const WorkbenchShell = memo<WorkbenchShellProps>(
({ children, enableCustomFonts, resources, locale: localeProp }) => {
const locale =
localeProp ??
(typeof document === 'undefined' ? 'en-US' : document.documentElement.lang || 'en-US');
return (
<WorkbenchLocale defaultLang={locale} resources={resources}>
<WorkbenchTheme enableCustomFonts={enableCustomFonts}>
<TooltipGroup layoutAnimation={false}>{children}</TooltipGroup>
<ModalHost />
<ToastHost />
</WorkbenchTheme>
</WorkbenchLocale>
);
},
);
WorkbenchShell.displayName = 'WorkbenchShell';
export default WorkbenchShell;