import { useId, type SVGProps } from 'react';

export type SplitHorizontalIconProps = SVGProps<SVGSVGElement> & {
  /** Accessibility title for the icon, set aria-hidden="true" if the icon is purely decorative. */
  title?: string;
  /**
   * The size of the icon.
   * It sets the font-size, possible as the width and height is `1em`. If not set, the icon will inherit the font size of its parent.
   */
  size?: '2xl' | 'xl' | 'large' | 'medium' | 'small';
  /**
   * The color of the icon.
   * @default 'inherit'
   */
  color?: 'inherit' | 'primary' | 'gray' | 'black' | 'white';
};

export const SplitHorizontalIcon = ({ title, size, color, ...props }: SplitHorizontalIconProps) => {
  const titleId = useId();
  return (
    <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" focusable='false' role='img' width='1em' height='1em'  aria-labelledby={title ? titleId : undefined} data-size={size} data-color={color} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path d="M8.355 19h-.71v-1.5h.71c.63 0 1.145-.514 1.145-1.144V7.645c0-.63-.514-1.145-1.145-1.145h-.71V5h.71a2.648 2.648 0 0 1 2.646 2.645v8.71A2.648 2.648 0 0 1 8.355 19M5 7.645A2.647 2.647 0 0 1 7.645 5v1.5c-.63 0-1.145.514-1.145 1.145v8.71c0 .631.515 1.145 1.145 1.145V19A2.647 2.647 0 0 1 5 16.356zM16.355 19h-.71v-1.5h.71l.117-.006a1.149 1.149 0 0 0 1.028-1.14v-8.71c0-.63-.514-1.144-1.145-1.144h-.71V5h.71A2.647 2.647 0 0 1 19 7.645v8.71A2.648 2.648 0 0 1 16.355 19" /><path d="M15.645 19A2.647 2.647 0 0 1 13 16.356V7.645A2.647 2.647 0 0 1 15.645 5v1.5c-.63 0-1.145.514-1.145 1.145v8.71c0 .631.515 1.145 1.145 1.145H16V19z" /></svg>
  );
};