/* Copyright 2024 New Vector Ltd. SPDX-License-Identifier: AGPL-3.0-only Please see LICENSE in the repository root for full details. */ import { ReactNode } from "react"; import { useReactions } from "../useReactions"; export function ReactionsAudioRenderer(): ReactNode { const { reactions } = useReactions(); // TODO: This may need to ensure we don't change the value if a duplicate reaction comes down. const expectedReactions = [...new Set([...Object.values(reactions)])]; return ( <> {expectedReactions.map( (r) => r.sound && ( ), )} ); }