import { createUniqueId } from "solid-js";
import { svgAttrs, maskInner, type CentralIconBaseProps } from "../CentralIconBase";

export const IconMicrophone = (props: CentralIconBaseProps) => {
  const maskId = "square-outlined-radius-0-stroke-2-IconMicrophone-" + createUniqueId();
  // Prevent reactive attributes from clearing innerHTML via a children update.
  // Keep innerHTML before children so SSR uses the SVG markup.
  return <svg {...svgAttrs({ ...props, ariaLabel: "microphone, mic, sound, podcast" })} innerHTML={maskInner("<path d=\"M16 7V10.5C16 12.7091 14.2091 14.5 12 14.5C9.79086 14.5 8 12.7091 8 10.5V7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z\" stroke-width=\"2\" stroke=\"currentColor\"/><path d=\"M4.58203 13.5C5.76881 16.4318 8.64314 18.5 12.0005 18.5C15.3579 18.5 18.2322 16.4318 19.419 13.5\" stroke-width=\"2\" stroke=\"currentColor\"/><path d=\"M12 22V19\" stroke-width=\"2\" stroke=\"currentColor\"/>", maskId, props.mode)} children={null} />;
};

export default IconMicrophone;
