import React, { PropsWithChildren } from "react"; import { Menu } from "@headlessui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBars } from "@fortawesome/free-solid-svg-icons/faBars"; import { SourcifySource } from "./url"; import { useAppConfigContext } from "./useAppConfig"; const SourcifyMenu: React.FC = () => { const { sourcifySource, setSourcifySource } = useAppConfigContext(); return (
Sourcify Datasource
setSourcifySource(SourcifySource.IPFS_IPNS)} > Resolve IPNS setSourcifySource(SourcifySource.CENTRAL_SERVER)} > Sourcify Servers
); }; type SourcifyMenuItemProps = { checked?: boolean; onClick: () => void; }; const SourcifyMenuItem: React.FC> = ({ checked = false, onClick, children, }) => ( {({ active }) => ( )} ); export default React.memo(SourcifyMenu);