ad19495702
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
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;
|