mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-27 14:44:12 +00:00
11 lines
284 B
TypeScript
11 lines
284 B
TypeScript
"use client"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
import { useConfig } from "@/hooks/use-config"
|
|
|
|
export function ThemeWrapper({ children }: React.ComponentProps<"div">) {
|
|
const [config] = useConfig()
|
|
|
|
return <div className={cn(`theme-${config.theme}`, "w-full")}>{children}</div>
|
|
}
|