2025-07-30 07:09:19 +08:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
|
|
|
|
import { ThemesStyle } from './ThemeStyles';
|
2025-08-02 12:45:15 +08:00
|
|
|
import { THEME_RESET_STYLE } from '@/styles/theme-reset';
|
2025-07-30 07:09:19 +08:00
|
|
|
|
|
|
|
interface ThemeWrapperProps extends React.ComponentProps<'div'> {
|
|
|
|
defaultTheme?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function ThemeWrapper({ children, className, defaultTheme }: ThemeWrapperProps) {
|
|
|
|
return (
|
2025-08-02 09:25:57 +08:00
|
|
|
<>
|
2025-08-02 12:45:15 +08:00
|
|
|
<div style={THEME_RESET_STYLE} className={cn('themes-wrapper w-full antialiased', className)}>
|
2025-08-02 09:25:57 +08:00
|
|
|
{children}
|
|
|
|
</div>
|
2025-07-30 07:09:19 +08:00
|
|
|
|
2025-08-02 09:25:57 +08:00
|
|
|
<ThemesStyle />
|
|
|
|
</>
|
2025-07-30 07:09:19 +08:00
|
|
|
);
|
|
|
|
}
|