cleanup ReactionData

This commit is contained in:
Timo K
2026-04-15 13:06:47 +02:00
parent 3cb092f541
commit dbf76db590
5 changed files with 31 additions and 18 deletions

View File

@@ -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