import React, { useState } from "react"; import { Text, IconButton } from "theme-ui"; import Stream from "./Stream"; function Nickname({ nickname, stream }) { const [streamMuted, setStreamMuted] = useState(false); return ( stream && setStreamMuted(!streamMuted)} > {nickname} {stream && ( {streamMuted ? ( ) : ( )} )} {stream && } ); } export default Nickname;