import React, { useMemo, useState } from "react"; import { Outlet } from "react-router-dom"; import Header from "./Header"; import { AppConfig, AppConfigContext } from "./useAppConfig"; import { SourcifySource } from "./url"; const Main: React.FC = () => { const [sourcifySource, setSourcifySource] = useState( SourcifySource.IPFS_IPNS ); const appConfig = useMemo((): AppConfig => { return { sourcifySource, setSourcifySource, }; }, [sourcifySource, setSourcifySource]); return (
); }; export default Main;