// 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 = { selectedOption: string | null; options: Array<{ label: string; value: string | null; icon?: any; onClick: () => void; }>; }; const Options: React.FC = ({ options, selectedOption }) => ( {options.map((option) => ( {option.icon} {option.label} ))} ); WebViewModal.Options = Options; WebViewModal.Options.displayName = "WebViewModal.Options";
{option.label}