import { clsx } from 'clsx'; import type { HTMLAttributes, PropsWithChildren, ReactElement } from 'react'; import { forwardRef } from 'react'; import { AppSidebarFallback } from '../app-sidebar'; import { appStyle, mainContainerStyle, toolStyle } from './index.css'; export type WorkspaceRootProps = PropsWithChildren<{ resizing?: boolean; useNoisyBackground?: boolean; useBlurBackground?: boolean; }>; export const AppContainer = ({ resizing, useNoisyBackground, useBlurBackground, children, }: WorkspaceRootProps) => { const noisyBackground = useNoisyBackground && environment.isDesktop; return (
{children}
); }; export interface MainContainerProps extends HTMLAttributes { className?: string; padding?: boolean; transparent?: boolean; } export const MainContainer = forwardRef< HTMLDivElement, PropsWithChildren >(function MainContainer( { className, padding, children, transparent, ...props }, ref ): ReactElement { return (
{children}
); }); MainContainer.displayName = 'MainContainer'; export const ToolContainer = (props: PropsWithChildren): ReactElement => { return
{props.children}
; }; export const WorkspaceFallback = (): ReactElement => { return ( ); };