import React, { ReactNode } from 'react'; import * as Dialog from '@radix-ui/react-dialog'; interface ModalProps { /** icon to open the modal */ icon: ReactNode; /** Title of the modal, will be shown on header */ title: ReactNode; /** cross icon to close the modal */ closeIcon: ReactNode; /** content of the modal */ content: ReactNode; /** Footer elements of the modal */ footerContent: ReactNode; /** Footer content of the modal which leads to closing the modal */ onCloseContent: ReactNode; } export const Modal = (props: ModalProps) => { const { icon, title, closeIcon, content, footerContent, onCloseContent } = props return ( {icon}

{title}

{closeIcon}
{content}
{footerContent} {onCloseContent}
) }