2e87b2fd22
Naomi
comment websockets
increase slow mode time to 5 seconds
fix to prevent duplicate comments
update livestream details
fix channel
pin electron boom
fix rebase
prune unused icons
updating meme
updating meme
update livestream for naomi
fix rebase
DigitalCashNetwork
remove electroboom pin
Slavguns
Joel
So he can edit his claims
add streamTypes param to claimTilesDiscover so following section can search for all types of content
fix typo
update meme
fixes
publish page fixes
pending
fix notifications
fix comments finally
fix claim preview
no mature for simplesite
Revert "no mature for simplesite"
This reverts commit 9f89242d85
.
fix livestream preview click
no mature on simple site
try fixing invite page crash
probably needs more changes.
32 lines
938 B
JavaScript
32 lines
938 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import DateTime from 'component/dateTime';
|
|
import FileViewCount from 'component/fileViewCount';
|
|
import FileActions from 'component/fileActions';
|
|
|
|
type Props = {
|
|
uri: string,
|
|
livestream?: boolean,
|
|
activeViewers?: number,
|
|
};
|
|
|
|
function FileSubtitle(props: Props) {
|
|
const { uri, livestream = false, activeViewers = 0 } = props;
|
|
|
|
return (
|
|
<div className="media__subtitle--between">
|
|
<div className="file__viewdate">
|
|
{livestream ? <span>{__('Right now')}</span> : <DateTime uri={uri} show={DateTime.SHOW_DATE} />}
|
|
{livestream ? (
|
|
<span>{__('%viewer_count% currently watching', { viewer_count: activeViewers })}</span>
|
|
) : (
|
|
<FileViewCount uri={uri} />
|
|
)}
|
|
</div>
|
|
{ /* did I need these params? */ }
|
|
<FileActions uri={uri} hideRepost={livestream} livestream={livestream} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default FileSubtitle;
|