mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-01 09:54:37 +00:00
cleanup ReactionData
This commit is contained in:
@@ -140,13 +140,16 @@ interface LoudspeakerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
||||
*/
|
||||
isEarpieceTarget: boolean;
|
||||
}
|
||||
export const LoudspeakerButton: FC<LoudspeakerButtonProps> = (props) => {
|
||||
export const LoudspeakerButton: FC<LoudspeakerButtonProps> = ({
|
||||
isEarpieceTarget,
|
||||
...props
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const label = props.isEarpieceTarget
|
||||
const label = isEarpieceTarget
|
||||
? t("settings.devices.handset")
|
||||
: t("settings.devices.loudspeaker");
|
||||
// if the target is the earpice, we are currently in loudspeaker mode.
|
||||
const enabled = props.isEarpieceTarget;
|
||||
const enabled = isEarpieceTarget;
|
||||
return (
|
||||
<Tooltip label={label}>
|
||||
<CpdButton
|
||||
|
||||
Reference in New Issue
Block a user