rsnext/test/integration/amphtml/pages/amp-script.amp.js
JJ Kasper aac50e4501
Add error message for AMP bind syntax (#6865)
* Add error message for AMP bind syntax

* Fix custom AMP scripts getting dropped

* Add data.js to package.json to include it
in releases
2019-04-02 17:32:07 -05:00

25 lines
426 B
JavaScript

import Head from 'next/head'
const date = new Date().toJSON()
export default () => (
<>
<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>
</>
)