[feature] add boolean to show channel name

This commit is contained in:
Janis
2023-06-25 21:49:37 +02:00
parent cf7d0301d2
commit 4ef9d0c3b2
2 changed files with 4 additions and 1 deletions

View File

@@ -4,13 +4,15 @@ import "@styles/Viewer.scss";
export default function Viewer({
clients,
channel,
showChannelName = false,
}: {
clients: IClient[] | undefined;
channel: IChannel | undefined;
showChannelName?: boolean;
}) {
return (
<div className="viewer">
<h3>{channel?.properties.name}</h3>
{showChannelName ? <h3>{channel?.properties.name}</h3> : null}
{clients?.map((client) => {
if (client) {
return (