ae2354a0e0
This reverts commit a6c413da5c
.
34 lines
793 B
JavaScript
34 lines
793 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 = 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>
|
|
);
|
|
}
|