@@ -22,49 +22,49 @@ import {
2222import styles from "./Button.module.css" ;
2323
2424interface MicButtonProps extends ComponentPropsWithoutRef < "button" > {
25- muted : boolean ;
25+ enabled : boolean ;
2626 size ?: "sm" | "lg" ;
2727}
2828
29- export const MicButton : FC < MicButtonProps > = ( { muted , ...props } ) => {
29+ export const MicButton : FC < MicButtonProps > = ( { enabled , ...props } ) => {
3030 const { t } = useTranslation ( ) ;
31- const Icon = muted ? MicOffSolidIcon : MicOnSolidIcon ;
32- const label = muted
33- ? t ( "unmute_microphone_button_label " )
34- : t ( "mute_microphone_button_label " ) ;
31+ const Icon = enabled ? MicOnSolidIcon : MicOffSolidIcon ;
32+ const label = enabled
33+ ? t ( "mute_microphone_button_label " )
34+ : t ( "unmute_microphone_button_label " ) ;
3535
3636 return (
3737 < Tooltip label = { label } >
3838 < CpdButton
3939 iconOnly
4040 aria-label = { label }
4141 Icon = { Icon }
42- kind = { muted ? "primary" : "secondary" }
42+ kind = { enabled ? "primary" : "secondary" }
4343 { ...props }
4444 />
4545 </ Tooltip >
4646 ) ;
4747} ;
4848
4949interface VideoButtonProps extends ComponentPropsWithoutRef < "button" > {
50- muted : boolean ;
50+ enabled : boolean ;
5151 size ?: "sm" | "lg" ;
5252}
5353
54- export const VideoButton : FC < VideoButtonProps > = ( { muted , ...props } ) => {
54+ export const VideoButton : FC < VideoButtonProps > = ( { enabled , ...props } ) => {
5555 const { t } = useTranslation ( ) ;
56- const Icon = muted ? VideoCallOffSolidIcon : VideoCallSolidIcon ;
57- const label = muted
58- ? t ( "start_video_button_label " )
59- : t ( "stop_video_button_label " ) ;
56+ const Icon = enabled ? VideoCallSolidIcon : VideoCallOffSolidIcon ;
57+ const label = enabled
58+ ? t ( "stop_video_button_label " )
59+ : t ( "start_video_button_label " ) ;
6060
6161 return (
6262 < Tooltip label = { label } >
6363 < CpdButton
6464 iconOnly
6565 aria-label = { label }
6666 Icon = { Icon }
67- kind = { muted ? "primary" : "secondary" }
67+ kind = { enabled ? "primary" : "secondary" }
6868 { ...props }
6969 />
7070 </ Tooltip >
0 commit comments