2018-03-26 23:32:43 +02:00
|
|
|
// @flow
|
2017-12-21 22:08:54 +01:00
|
|
|
import React from 'react';
|
2019-06-11 20:10:58 +02:00
|
|
|
import FileListDiscover from 'component/fileListDiscover';
|
|
|
|
import TagsSelect from 'component/tagsSelect';
|
2018-03-26 23:32:43 +02:00
|
|
|
import Page from 'component/page';
|
2017-12-08 21:14:35 +01:00
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
type Props = {
|
2019-06-11 20:10:58 +02:00
|
|
|
followedTags: Array<Tag>,
|
2018-03-26 23:32:43 +02:00
|
|
|
};
|
2017-12-08 21:14:35 +01:00
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
function DiscoverPage(props: Props) {
|
|
|
|
const { followedTags } = props;
|
|
|
|
return (
|
|
|
|
<Page className="card">
|
|
|
|
<FileListDiscover
|
|
|
|
personal
|
|
|
|
tags={followedTags.map(tag => tag.name)}
|
|
|
|
injectedItem={<TagsSelect showClose title={__('Make This Your Own')} />}
|
|
|
|
/>
|
|
|
|
</Page>
|
|
|
|
);
|
2017-05-04 05:44:08 +02:00
|
|
|
}
|
|
|
|
|
2017-05-25 18:29:56 +02:00
|
|
|
export default DiscoverPage;
|