Drop setting

This commit is contained in:
Half-Shot
2024-12-09 14:36:58 +00:00
parent 865187d58e
commit fbfa8c3e1d

View File

@@ -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 }) => (