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

export type SplitVerticalIconProps = 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 SplitVerticalIcon = ({ title, size, color, ...props }: SplitVerticalIconProps) => {
  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="M5 8.355v-.71h1.5v.71c0 .63.514 1.145 1.145 1.145h8.71c.631 0 1.145-.514 1.145-1.145v-.71H19v.71a2.648 2.648 0 0 1-2.645 2.646h-8.71A2.648 2.648 0 0 1 5 8.355M16.355 5A2.647 2.647 0 0 1 19 7.645h-1.5c0-.63-.514-1.145-1.145-1.145h-8.71c-.63 0-1.145.515-1.145 1.145H5A2.647 2.647 0 0 1 7.645 5zM5 16.355v-.71h1.5v.71l.006.117a1.149 1.149 0 0 0 1.14 1.028h8.71c.63 0 1.144-.514 1.144-1.145v-.71H19v.71A2.647 2.647 0 0 1 16.355 19h-8.71A2.648 2.648 0 0 1 5 16.355" /><path d="M5 15.645A2.648 2.648 0 0 1 7.645 13h8.71A2.647 2.647 0 0 1 19 15.645h-1.5c0-.63-.514-1.145-1.145-1.145h-8.71c-.63 0-1.145.515-1.145 1.145V16H5z" /></svg>
  );
};