2018-02-07 19:52:09 +01:00
|
|
|
import React from 'react';
|
2018-02-23 20:00:46 +01:00
|
|
|
import SEO from 'components/SEO';
|
2018-02-07 19:52:09 +01:00
|
|
|
import { Link } from 'react-router-dom';
|
|
|
|
import AssetDisplay from 'components/AssetDisplay';
|
2018-02-23 20:00:46 +01:00
|
|
|
import { createPageTitle } from 'utils/pageTitle';
|
|
|
|
import { createAssetCanonicalLink } from 'utils/canonicalLink';
|
|
|
|
import { createAssetMetaTags } from 'utils/metaTags';
|
2018-02-23 03:05:00 +01:00
|
|
|
|
2018-02-07 19:52:09 +01:00
|
|
|
class ShowLite extends React.Component {
|
|
|
|
render () {
|
2018-02-14 20:39:24 +01:00
|
|
|
const { asset } = this.props;
|
2018-02-23 03:05:00 +01:00
|
|
|
if (asset) {
|
2018-02-23 20:00:46 +01:00
|
|
|
const { name, claimId } = asset.claimData;
|
|
|
|
const pageTitle = createPageTitle(name);
|
|
|
|
const canonicalLink = createAssetCanonicalLink(asset);
|
|
|
|
const metaTags = createAssetMetaTags(asset);
|
2018-02-23 03:05:00 +01:00
|
|
|
return (
|
|
|
|
<div className='row row--tall flex-container--column flex-container--center-center'>
|
2018-02-23 20:00:46 +01:00
|
|
|
<SEO pageTitle={pageTitle} canonicalLink={canonicalLink} metaTags={metaTags} />
|
2018-02-23 03:05:00 +01:00
|
|
|
<div>
|
|
|
|
<AssetDisplay />
|
|
|
|
<Link id='asset-boilerpate' className='link--primary fine-print' to={`/${claimId}/${name}`}>hosted
|
|
|
|
via Spee.ch</Link>
|
|
|
|
</div>
|
2018-02-07 19:52:09 +01:00
|
|
|
</div>
|
2018-02-23 03:05:00 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
<p>loading asset data...</p>
|
2018-02-07 19:52:09 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ShowLite;
|