stacker.news/pages/users/search.js

17 lines
535 B
JavaScript
Raw Normal View History

2023-05-18 23:41:56 +00:00
import Layout from '../../components/layout'
import { getGetServerSideProps } from '../../api/ssrApollo'
import { SeoSearch } from '../../components/seo'
import { USER_SEARCH } from '../../fragments/users'
import UserList from '../../components/user-list'
export const getServerSideProps = getGetServerSideProps(USER_SEARCH, { limit: 21, similarity: 0.2 })
export default function Index ({ data: { searchUsers } }) {
return (
<Layout noSeo search>
<SeoSearch />
<UserList users={searchUsers} />
</Layout>
)
}