import type { ComponentPropsWithoutRef, ElementRef } from 'react' import { forwardRef } from 'react' import { cn } from '@/lib/utils' import { BackgroundLayer } from '@/components/background-layer' import { Card } from '@/components/ui/card' import { useBackground } from '@/hooks/use-background' type CardWithBackgroundProps = ComponentPropsWithoutRef export const CardWithBackground = forwardRef< ElementRef, CardWithBackgroundProps >(({ className, children, ...props }, ref) => { const { config: bg } = useBackground('card') return (
{children}
) }) CardWithBackground.displayName = 'CardWithBackground'