import React from 'react'; import FocusTrap from 'focus-trap-react'; import { Box, config, Dialog, Header, Icon, IconButton, Icons, Overlay, OverlayBackdrop, OverlayCenter, Text, } from 'folds'; import { useAtom } from 'jotai'; import { callSummaryViewAtom } from '../../state/callSummary'; import { useModalStyle } from '../../hooks/useModalStyle'; import { stopPropagation } from '../../utils/keyboard'; /** * [Gitea #253] The post-call "Details" card: opened from the call-ended toast, * shows who was in the call, connection quality and whose side it was on, * network numbers and your own activity (technical wording). */ export function CallSummaryDialog() { const [view, setView] = useAtom(callSummaryViewAtom); const modalStyle = useModalStyle(400); if (!view) return null; const close = () => setView(undefined); return ( }>
Call summary ยท {view.roomName}
{view.sections.map((section) => ( {section.title} {section.lines.map((line) => ( {line} ))} ))}
); }