import { GetServerSideProps } from 'next'; import { useQuery } from '@apollo/react-hooks'; import Head from 'next/head'; import { initializeApollo } from '../../lib/apolloClient'; import Nav from '../../components/home/Nav'; import About from '../../components/org/About'; import Footer from '../../components/home/Footer'; import { GET_ORG_QUERY } from '../../graphql/queries'; const Org: React.FC<{ variables: any }> = ({ variables }) => { const { data, loading } = useQuery(GET_ORG_QUERY, { variables }); if (loading) return
Loading
; const { result } = data.org; return ( <> Portal | {result.title || result.name}