App for making pecha kucha presentations.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

34 行
704 B

  1. import {GetServerSideProps, NextPage} from 'next'
  2. import Template from '../../../components/templates/RightSidebarLayout'
  3. import {POPUP, QUERY} from '../../../utilities/queryKeys'
  4. import {USER} from '../../../utilities/popups'
  5. type Props = {
  6. query: string
  7. }
  8. const Page: NextPage<Props> = ({query}) => {
  9. return (
  10. <Template
  11. query={query}
  12. userLinkLabel="User"
  13. searchQueryKey={QUERY}
  14. searchLabel="Search"
  15. searchHint="e.g. keywords, names&hellip;"
  16. popupQueryKey={POPUP}
  17. userPopupQueryValue={USER}
  18. />
  19. )
  20. }
  21. export default Page
  22. export const getServerSideProps: GetServerSideProps = async (ctx) => {
  23. const {[QUERY]: query = ''} = ctx.query
  24. return {
  25. props: {
  26. query,
  27. },
  28. }
  29. }