(fix): remove unused dependencies
Some checks failed
/ build-desktop (linux) (push) Failing after 52s
/ build-web (push) Failing after 1m3s
/ build-mobile (push) Failing after 1m6s
/ release (push) Has been skipped

(fix): remove dead code
(fix): remove unused exports
This commit is contained in:
Alois 2026-06-03 14:53:18 +02:00
commit be56080ba1
29 changed files with 168 additions and 338 deletions

View file

@ -1,18 +1,14 @@
import { Button, Tooltip, TooltipContent, TooltipTrigger } from "@tensamin/ui";
import { Button } from "@tensamin/ui";
import { toggleDeaf, useCall } from "../../store";
import { HeadphoneOff, Headphones } from "lucide-react";
import { type CallButtonProps, iconScale, withTooltip } from "./tooltipButton";
export default function DeafButton({
className,
iconSize,
tooltip,
portalContainer,
}: {
className?: string;
iconSize?: number;
tooltip?: string;
portalContainer?: HTMLElement;
}) {
}: CallButtonProps) {
const deaf = useCall((state) => state.deaf);
const button = (
@ -22,27 +18,12 @@ export default function DeafButton({
className={className}
>
{deaf ? (
<HeadphoneOff
style={{ scale: (iconSize ? iconSize + 100 : 100) + "%" }}
/>
<HeadphoneOff style={iconScale(iconSize)} />
) : (
<Headphones
style={{ scale: (iconSize ? iconSize + 100 : 100) + "%" }}
/>
<Headphones style={iconScale(iconSize)} />
)}
</Button>
);
if (!tooltip) {
return button;
}
return (
<Tooltip>
<TooltipTrigger render={button} />
<TooltipContent portalProps={{ container: portalContainer }}>
{tooltip}
</TooltipContent>
</Tooltip>
);
return withTooltip(button, tooltip, portalContainer);
}