Template for starting apps, powered by Next.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
427 B

  1. import {GetServerSideProps, NextPage} from 'next'
  2. import Template from '../../../components/templates/RightSidebarLayout'
  3. type Props = {
  4. query: string,
  5. }
  6. const Page: NextPage<Props> = ({
  7. query,
  8. }) => {
  9. return (
  10. <Template
  11. query={query}
  12. />
  13. )
  14. }
  15. export default Page
  16. export const getServerSideProps: GetServerSideProps = async (ctx) => {
  17. const { q: query = '', } = ctx.query
  18. return {
  19. props: {
  20. query,
  21. }
  22. }
  23. }