import { ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, Slider, } from "@tensamin/ui"; import { User } from "@tensamin/user/context"; import { useCall } from "../../store"; import { useState } from "react"; function EmptyCheckboxIndicator({ checked }: { checked: boolean }) { if (checked) { return null; } return ( ); } export default function ContextMenu({ user, ownId, }: { user: User; ownId: number; }) { const [muted, setMuted] = useState(false); const [soundboardMuted, setSoundboardMuted] = useState(false); const [serverDeafened, setServerDeafened] = useState(false); const [serverMuted, setServerMuted] = useState(false); const watchedStreamParticipantIds = useCall( (state) => state.watchedStreamParticipantIds, ); return ( {watchedStreamParticipantIds.includes(user.user_id) && user.user_id !== ownId ? ( Stop Watching ) : null} Profile Change Nickname e.preventDefault()} className="flex flex-col items-start pb-2" >

Volume

e.stopPropagation()} onPointerDown={(e) => e.stopPropagation()} />
e.preventDefault()} className="flex justify-between" >

Mute

e.preventDefault()} className="flex justify-between" >

Mute Soundboard

e.preventDefault()} className="flex justify-between text-destructive focus:text-destructive" >

Server Deaf

e.preventDefault()} className="flex justify-between text-destructive focus:text-destructive" >

Server Mute

Disconnect
); }