lbry-desktop/ui/js/component/fileTile/view.jsx
2017-05-02 19:10:35 -04:00

31 lines
No EOL
706 B
JavaScript

import React from 'react';
import lbry from 'lbry.js';
import lbryuri from 'lbryuri.js';
import Link from 'component/link';
import FileCardStream from 'component/fileCardStream'
import FileTileStream from 'component/fileTileStream'
import FileActions from 'component/fileActions';
class FileTile extends React.Component {
render() {
const {
displayStyle,
uri,
claim,
} = this.props
if(!claim) {
if (displayStyle == 'card') {
return <FileCardStream uri={uri} />
}
return null
}
return displayStyle == 'card' ?
<FileCardStream uri={uri} />
:
<FileTileStream uri={uri} key={uri} />
}
}
export default FileTile