File size: 490 Bytes
87337b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { IconProps } from "../types"
import micMuteSvg from "@/assets/mic_mute.svg"
import micUnMuteSvg from "@/assets/mic_unmute.svg"

interface IMicIconProps extends IconProps {
  active?: boolean
}

export const MicIcon = (props: IMicIconProps) => {
  const { active, color, ...rest } = props

  if (active) {
    return micUnMuteSvg({
      color: color || "#3D53F5",
      ...rest,
    })
  } else {
    return micMuteSvg({
      color: color || "#667085",
      ...rest,
    })
  }
}