// react import React, { Fragment } from "react"; // headless ui import { Transition, Dialog } from "@headlessui/react"; // icons import { XMarkIcon } from "@heroicons/react/24/outline"; type Props = { isOpen: boolean; onClose: () => void; modalTitle: string; children: React.ReactNode; }; export const WebViewModal = (props: Props) => { const { isOpen, onClose, modalTitle, children } = props; const handleClose = () => { onClose(); }; return (
{modalTitle}
{children}
); }; type OptionsProps = { options: Array<{ label: string | React.ReactNode; value: string | null; checked: boolean; icon?: any; onClick: () => void; }>; }; const Options: React.FC = ({ options }) => (
{options.map((option) => (
{option.icon}

{option.label}

))}
); type FooterProps = { children: React.ReactNode; className?: string; }; const Footer: React.FC = ({ children, className }) => (
{children}
); WebViewModal.Options = Options; WebViewModal.Footer = Footer; WebViewModal.Options.displayName = "WebViewModal.Options"; WebViewModal.Footer.displayName = "WebViewModal.Footer";