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

export const IconArrowDown = (props: CentralIconBaseProps) => {
  const maskId = "square-outlined-radius-0-stroke-2-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 14L12 20L6 14\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"square\"/><path d=\"M12 19V4\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"square\"/>", maskId, props.mode)} children={null} />;
};

export default IconArrowDown;
