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

export const IconArrowDown = (props: CentralIconBaseProps) => {
  const maskId = "round-outlined-radius-0-stroke-1-IconArrowDown-" + 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: "arrow-down" })} innerHTML={maskInner("<path d=\"M18.5 14L12 20.5L5.5 14\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\"/><path d=\"M12 20.3V3.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"currentColor\"/>", maskId, props.mode)} children={null} />;
};

export default IconArrowDown;
