rsnext/test/integration/amphtml/pages/amp-script.js
Joe Haddad b3170d2648
Format missed files (#7464)
* Format missed files

* Remove unnecessary rule

* Fix type error
2019-05-29 18:19:32 -07:00

21 lines
441 B
JavaScript

import Head from 'next/head'
import { withAmp } from 'next/amp'
const date = new Date().toJSON()
export default withAmp(() => (
<>
<Head>
<script
async
key='amp-timeago'
custom-element='amp-timeago'
src='https://cdn.ampproject.org/v0/amp-timeago-0.1.js'
/>
</Head>
<amp-timeago width='160' height='20' datetime={date} layout='responsive'>
{date}
</amp-timeago>
</>
))