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

export const IconArrowsUpDown = (props: CentralIconBaseProps) => {
  const maskId = "square-outlined-radius-0-stroke-1.5-IconArrowsUpDown-" + 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: "arrows-up-down, change, switch, filter" })} innerHTML={maskInner("<path d=\"M8.25 15V4\" stroke-width=\"1.5\" stroke=\"currentColor\"/><path d=\"M15.75 20V9\" stroke-width=\"1.5\" stroke=\"currentColor\"/><path d=\"M4.25 7.75L8.25 3.75L12.25 7.75\" stroke-width=\"1.5\" stroke=\"currentColor\"/><path d=\"M11.75 16.25L15.75 20.25L19.75 16.25\" stroke-width=\"1.5\" stroke=\"currentColor\"/>", maskId, props.mode)} children={null} />;
};

export default IconArrowsUpDown;
