2017-05-05 10:01:16 +02:00
|
|
|
import React from 'react';
|
|
|
|
import lbryuri from 'lbryuri';
|
|
|
|
import FileTile from 'component/fileTile'
|
2017-05-11 02:59:47 +02:00
|
|
|
import FileListSearch from 'component/fileListSearch'
|
2017-05-05 10:01:16 +02:00
|
|
|
import {ToolTip} from 'component/tooltip.js';
|
|
|
|
import {BusyMessage} from 'component/common.js';
|
|
|
|
|
|
|
|
|
2017-05-11 02:59:47 +02:00
|
|
|
class SearchPage extends React.Component{
|
|
|
|
render() {
|
|
|
|
const {
|
|
|
|
query,
|
|
|
|
} = this.props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<main className="main--single-column">
|
2017-05-12 22:49:15 +02:00
|
|
|
{ lbryuri.isValid(query) ?
|
2017-05-11 02:59:47 +02:00
|
|
|
<section className="section-spaced">
|
|
|
|
<h3 className="card-row__header">
|
2017-05-26 02:38:55 +02:00
|
|
|
{__("Exact URL")} <ToolTip label="?" body={__("This is the resolution of a LBRY URL and not controlled by LBRY Inc.")}
|
2017-05-11 02:59:47 +02:00
|
|
|
className="tooltip--header" />
|
|
|
|
</h3>
|
|
|
|
<FileTile uri={lbryuri.normalize(query)} showEmpty={FileTile.SHOW_EMPTY_PUBLISH} />
|
|
|
|
</section> : '' }
|
2017-05-05 10:01:16 +02:00
|
|
|
<section className="section-spaced">
|
|
|
|
<h3 className="card-row__header">
|
2017-05-26 02:38:55 +02:00
|
|
|
{__("Search Results for")} {query} <ToolTip label="?" body={__("These search results are provided by LBRY, Inc.")}
|
2017-05-11 02:59:47 +02:00
|
|
|
className="tooltip--header" />
|
2017-05-05 10:01:16 +02:00
|
|
|
</h3>
|
2017-05-11 02:59:47 +02:00
|
|
|
<FileListSearch query={query} />
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
)
|
|
|
|
}
|
2017-05-05 10:01:16 +02:00
|
|
|
}
|
|
|
|
export default SearchPage;
|