mirror of https://github.com/buster-so/buster.git
26 lines
502 B
TypeScript
26 lines
502 B
TypeScript
|
'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>
|
||
|
);
|
||
|
}
|