mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-28 06:50:26 +00:00
Drop setting
This commit is contained in:
@@ -6,22 +6,12 @@ Please see LICENSE in the repository root for full details.
|
||||
*/
|
||||
|
||||
import { ReactNode } from "react";
|
||||
import {
|
||||
showReactions as showReactionsSetting,
|
||||
useSetting,
|
||||
} from "../settings/settings";
|
||||
import styles from "./ReactionsOverlay.module.css";
|
||||
import { CallViewModel } from "../state/CallViewModel";
|
||||
import { useObservableState } from "observable-hooks";
|
||||
|
||||
export function ReactionsOverlay({ vm }: { vm: CallViewModel }): ReactNode {
|
||||
const [showReactions] = useSetting(showReactionsSetting);
|
||||
const reactionsIcons = useObservableState(vm.visibleReactions);
|
||||
|
||||
if (!showReactions) {
|
||||
return;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
{reactionsIcons?.map(({ sender, emoji, startX }) => (
|
||||
|
||||
Reference in New Issue
Block a user