'use client'; import React from 'react'; import { useBreakpoint } from '../../hook/breakpoints.hook.js'; import { resolveResponsiveVariant } from '../../utils/breakpoint.util.js'; import { ModalBackdrop, ModalDialog } from './components/index.js'; import { type ModalProps } from './modal.types.js'; export function Modal({ children, backdropClassName, title, role, body, size = 'md', className, fullscreen, compact = false, ...props }: ModalProps) { const breakpoint = useBreakpoint(); return ( props.state.close() : undefined} title={title} role={role} body={body} size={resolveResponsiveVariant(size, breakpoint)} className={className} compact={compact} > {children} ); }