mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
33 lines
588 B
React
33 lines
588 B
React
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>
|
|
)
|
|
}
|