buster/apps/web/src/components/ui/report/ThemeWrapper/ThemeWrapper.tsx

26 lines
502 B
TypeScript
Raw Normal View History

2025-07-30 07:09:19 +08:00
'use client';
import { cn } from '@/lib/utils';
import { ThemesStyle } from './ThemeStyles';
interface ThemeWrapperProps extends React.ComponentProps<'div'> {
defaultTheme?: string;
}
export function ThemeWrapper({ children, className, defaultTheme }: ThemeWrapperProps) {
return (
<div
className={cn(
// `theme-${defaultTheme || config.theme}`,
'themes-wrapper',
'w-full',
className
)}>
<ThemesStyle />
{children}
</div>
);
}