import Link from 'next/link';
import { Card, Row, Col, Input, Collapse, Typography } from 'antd';
import {
MessageTwoTone,
QuestionCircleTwoTone,
BookTwoTone,
PlaySquareTwoTone,
ProfileTwoTone,
} from '@ant-design/icons';
import OwncastLogo from '../components/logo';
import LogTable from '../components/log-table';
import NewsFeed from '../components/news-feed';
import { useContext } from 'react';
import { ServerStatusContext } from '../utils/server-status-context';
const { Paragraph, Text } = Typography;
const { Title } = Typography;
const { Meta } = Card;
const { Panel } = Collapse;
function generateStreamURL(serverURL) {
return `rtmp://${serverURL.replace(/(^\w+:|^)\/\//, '')}/live/`;
}
export default function Offline({ logs = [], config }) {
const serverStatusData = useContext(ServerStatusContext);
const { serverConfig } = serverStatusData || {};
const { streamKey } = serverConfig;
const instanceUrl = global.window?.location.hostname || '';
const data = [
{
icon:
You should start one.