import App from "App"; import { Footer, Header, Home, PlayMeta, DefMeta, PageNotFound, PlayIdeas, TechStack } from "common"; import PlayList from "common/playlists/PlayList"; import { BrowserRouter, Route, Routes } from "react-router-dom"; import { NhostClient, NhostReactProvider } from "@nhost/react"; import useGetPlays from "common/hooks/useGetPlays"; const nhost = new NhostClient({ backendUrl: process.env.REACT_APP_NHOST_BACKEND_URL || "", }); const RouteDefs = () => { const [loading, error, plays] = useGetPlays(); const success = !loading && !error && !!plays.length; return (
} /> } /> }> } /> {success && plays?.map((play, index) => ( } > } /> ))} } /> } />