File size: 378 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { use } from 'react'

async function getData() {
  return {
    message: 'hello from layout',
    nowDuringExecution: Date.now(),
  }
}

export default function GspLayout(props) {
  const data = use(getData())

  return (
    <>
      <h1 id="layout-message">{data.message}</h1>
      <p id="layout-now">{data.nowDuringExecution}</p>
      {props.children}
    </>
  )
}