lbry-desktop/ui/component/fileSubtitle/view.jsx

27 lines
564 B
React
Raw Normal View History

2020-03-14 12:07:36 -04:00
// @flow
import React from 'react';
2021-10-29 12:14:39 -04:00
import DateTime from 'component/dateTime';
2020-03-14 12:07:36 -04:00
import FileViewCount from 'component/fileViewCount';
2020-09-30 16:46:20 -04:00
import FileActions from 'component/fileActions';
2020-03-14 12:07:36 -04:00
type Props = {
uri: string,
};
function FileSubtitle(props: Props) {
2021-10-19 00:49:51 -04:00
const { uri } = props;
2020-03-14 12:07:36 -04:00
return (
<div className="media__subtitle--between">
2020-09-30 16:46:20 -04:00
<div className="file__viewdate">
2021-10-29 12:14:39 -04:00
<DateTime uri={uri} show={DateTime.SHOW_DATE} />
2021-10-19 00:49:51 -04:00
<FileViewCount uri={uri} />
2020-09-30 16:46:20 -04:00
</div>
2021-10-19 00:49:51 -04:00
<FileActions uri={uri} />
2020-03-14 12:07:36 -04:00
</div>
);
}
export default FileSubtitle;