import Layout from '../components/layout' import { getGetServerSideProps } from '../api/ssrApollo' import { ITEM_SEARCH } from '../fragments/items' import SearchItems from '../components/search-items' import { useRouter } from 'next/router' import { SeoSearch } from '../components/seo' import Down from '../svgs/arrow-down-line.svg' export const getServerSideProps = getGetServerSideProps(ITEM_SEARCH) export default function Index ({ data: { search: { items, cursor } } }) { const router = useRouter() return ( {router.query?.q ? : (
search for something
)}
) }