import CloseIcon from '@mui/icons-material/Close' import { Alert, AppBar, Box, Button, Container, Dialog, Grid, IconButton, Paper, Slide, TextField, Toolbar, Typography } from '@mui/material' import { TransitionProps } from '@mui/material/transitions' import { forwardRef, useState } from 'react' import { useToast } from '../../hooks/toast' import { useI18n } from '../../hooks/useI18n' import { useRPC } from '../../hooks/useRPC' type Props = { open: boolean onClose: () => void } const Transition = forwardRef(function Transition( props: TransitionProps & { children: React.ReactElement }, ref: React.Ref, ) { return }) const LivestreamDialog: React.FC = ({ open, onClose }) => { const [livestreamURL, setLivestreamURL] = useState('') const { i18n } = useI18n() const { client } = useRPC() const { pushMessage } = useToast() const exec = (url: string) => client.execLivestream(url) return ( Livestream monitor theme.palette.background.default, minHeight: (theme) => `calc(99vh - ${theme.mixins.toolbar.minHeight}px)` }}> {i18n.t('livestreamDownloadInfo')} {i18n.t('livestreamExperimentalWarning')} setLivestreamURL(e.target.value)} /> ) } export default LivestreamDialog