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