lbry-desktop/ui/page/livestreamCurrent/view.jsx
infinite-persistence afe3f913ae Add 'ENABLE_WIP_FEATURES' for live page.
Got tired of hijacking code. Didn't want to alter my account either.
2021-08-12 21:52:58 -07:00

34 lines
830 B
JavaScript

// @flow
import React from 'react';
import LivestreamList from 'component/livestreamList';
import Button from 'component/button';
import Page from 'component/page';
import Yrbl from 'component/yrbl';
type Props = {
user: ?User,
};
export default function LivestreamCurrentPage(props: Props) {
const { user } = props;
const canView = process.env.ENABLE_WIP_FEATURES || (user && user.global_mod);
return (
<Page>
{canView ? (
<LivestreamList />
) : (
<Yrbl
type="sad"
title={__("This page isn't quite ready")}
subtitle={__('Check back later.')}
actions={
<div className="section__actions">
<Button button="primary" navigate="/" label={__('Go Home')} />
</div>
}
/>
)}
</Page>
);
}