mirror of
https://github.com/owncast/owncast.git
synced 2024-12-30 04:58:32 +03:00
32 lines
799 B
TypeScript
32 lines
799 B
TypeScript
import { Divider, Button } from 'antd';
|
|
import { NotificationFilled } from '@ant-design/icons';
|
|
|
|
import s from './OfflineBanner.module.scss';
|
|
|
|
interface Props {
|
|
name: string;
|
|
text: string;
|
|
}
|
|
|
|
export default function OfflineBanner({ name, text }: Props) {
|
|
const handleShowNotificationModal = () => {
|
|
console.log('show notification modal');
|
|
};
|
|
|
|
return (
|
|
<div className={s.outerContainer}>
|
|
<div className={s.innerContainer}>
|
|
<div className={s.header}>{name} is currently offline.</div>
|
|
<Divider />
|
|
<div>{text}</div>
|
|
|
|
<div className={s.footer}>
|
|
<Button type="primary" onClick={handleShowNotificationModal}>
|
|
<NotificationFilled />
|
|
Notify when Live
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|