mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-09 18:29:21 +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 { ReactNode } from "react";
|
||||||
import {
|
|
||||||
showReactions as showReactionsSetting,
|
|
||||||
useSetting,
|
|
||||||
} from "../settings/settings";
|
|
||||||
import styles from "./ReactionsOverlay.module.css";
|
import styles from "./ReactionsOverlay.module.css";
|
||||||
import { CallViewModel } from "../state/CallViewModel";
|
import { CallViewModel } from "../state/CallViewModel";
|
||||||
import { useObservableState } from "observable-hooks";
|
import { useObservableState } from "observable-hooks";
|
||||||
|
|
||||||
export function ReactionsOverlay({ vm }: { vm: CallViewModel }): ReactNode {
|
export function ReactionsOverlay({ vm }: { vm: CallViewModel }): ReactNode {
|
||||||
const [showReactions] = useSetting(showReactionsSetting);
|
|
||||||
const reactionsIcons = useObservableState(vm.visibleReactions);
|
const reactionsIcons = useObservableState(vm.visibleReactions);
|
||||||
|
|
||||||
if (!showReactions) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
{reactionsIcons?.map(({ sender, emoji, startX }) => (
|
{reactionsIcons?.map(({ sender, emoji, startX }) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user