import {forwardRef, type PropsWithChildren, type ForwardedRef} from 'react'; import type { Modal as ModalElement, ModalProperties, } from '@watching/clips/elements'; import {useCustomElementProperties} from './shared.ts'; export interface ModalProps extends PropsWithChildren, 'padding'>> { ref?: ForwardedRef; padding?: ModalProperties['padding'] | boolean; } declare module 'react' { namespace JSX { interface IntrinsicElements { 'ui-modal': ModalProps; } } } export const Modal = forwardRef( function Modal(props, ref) { const wrapperRef = useCustomElementProperties(props, ref); return ; }, );