File size: 588 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import Head from 'next/head'

export const config = {
  amp: true,
}

await Promise.resolve('tadaa')

export default function Config() {
  const date = new Date()
  return (
    <div>
      <Head>
        <script
          async
          key="amp-timeago"
          custom-element="amp-timeago"
          src="https://cdn.ampproject.org/v0/amp-timeago-0.1.js"
        />
      </Head>
      <amp-timeago
        id="amp-timeago"
        width="0"
        height="15"
        datetime={date.toJSON()}
        layout="responsive"
      >
        fail
      </amp-timeago>
    </div>
  )
}