mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
[feature] add boolean to show channel name
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user