import Runtime from '../utils/runtime'
import Time from '../utils/time'

export default function Page({ type }) {
  return (
    <div className="node-rsc-ssr">
      This is a {type} RSC page.
      <br />
      <Runtime />
      <br />
      <Time />
    </div>
  )
}

export function getServerSideProps() {
  return {
    props: {
      type: 'SSR',
    },
  }
}

export const config = {
  runtime: 'nodejs',
}
