MCPcopy Create free account
hub / github.com/cloudflare/meet / LeaveRoomButton

Function LeaveRoomButton

app/components/LeaveRoomButton.tsx:13–35  ·  view source on GitHub ↗
({
	navigateToFeedbackPage,
	meetingId,
})

Source from the content-addressed store, hash-verified

11}
12
13export const LeaveRoomButton: FC<LeaveRoomButtonProps> = ({
14 navigateToFeedbackPage,
15 meetingId,
16}) => {
17 const navigate = useNavigate()
18 return (
19 <Tooltip content="Leave">
20 <Button
21 displayType="danger"
22 onClick={() => {
23 const params = new URLSearchParams()
24 if (meetingId) params.set('meetingId', meetingId)
25 navigate(
26 navigateToFeedbackPage ? `/call-quality-feedback?${params}` : '/'
27 )
28 }}
29 >
30 <VisuallyHidden>Leave</VisuallyHidden>
31 <Icon type="phoneXMark" />
32 </Button>
33 </Tooltip>
34 )
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected