/** * 圣诞节主题装饰组件归档 * 包含圣诞树、圣诞帽图标以及下雪效果的集成组件 * * 使用示例: * ```tsx * import { ChristmasDecorations } from "@/components/layout/avater-style/Christmas" * * function MyComponent() { * const [showChristmas, setShowChristmas] = useState(false) * * return ( * <> * {showChristmas && } *
setShowChristmas(!showChristmas)}> * * *
* * ) * } * ``` */ import { cn } from '@/lib/utils'; import { SnowEffect } from '@/components/ui/snow-effect'; /** * 圣诞树图标组件 */ export const ChristmasTree = ({ className, show = true, }: { className?: string; show?: boolean; }) => ( ); /** * 圣诞帽图标组件 */ export const ChristmasHat = ({ className }: { className?: string }) => ( ); /** * 圣诞节装饰集合 * 包含所有圣诞节主题组件的命名空间 */ export const ChristmasDecorations = { Tree: ChristmasTree, Hat: ChristmasHat, SnowEffect: SnowEffect, }; export default ChristmasDecorations;