Initial support for Hand Raise feature

Signed-off-by: Milton Moura <miltonmoura@gmail.com>
This commit is contained in:
Milton Moura
2024-08-07 01:58:14 +00:00
parent cec7fc8f5b
commit 48cf487e0a
8 changed files with 192 additions and 8 deletions

View File

@@ -18,6 +18,7 @@ import {
SettingsSolidIcon,
} from "@vector-im/compound-design-tokens/assets/web/icons";
import RaiseHandIcon from "../icons/RaiseHand.svg?react";
import styles from "./Button.module.css";
interface MicButtonProps extends ComponentPropsWithoutRef<"button"> {
@@ -91,6 +92,27 @@ export const ShareScreenButton: FC<ShareScreenButtonProps> = ({
);
};
interface RaiseHandButtonProps extends ComponentPropsWithoutRef<"button"> {
raised: boolean;
}
export const RaiseHandButton: FC<RaiseHandButtonProps> = ({
raised,
...props
}) => {
const { t } = useTranslation();
return (
<Tooltip label={t("common.raise_hand")}>
<CpdButton
iconOnly
Icon={RaiseHandIcon}
kind={raised ? "primary" : "secondary"}
{...props}
/>
</Tooltip>
);
};
export const EndCallButton: FC<ComponentPropsWithoutRef<"button">> = ({
className,
...props