Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

5.6 KB
Raw Blame
import { TClassName } from '@react/features/ai-chat/types';
import { cn } from '@react/shared/utils/general';

export const ArrowLeftIcon = ({ className }: TClassName) => (
  <svg
    className={cn('size-5', className)}
    fill="none"
    stroke="currentColor"
    viewBox="0 0 24 24"
    xmlns="http://www.w3.org/2000/svg"
    aria-hidden="true"
  >
    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M15 19l-7-7 7-7" />
  </svg>
);

export const CloseIcon = ({ className }: TClassName) => (
  <svg className={cn('size-6', className)} fill="none" stroke="currentColor" viewBox="0 0 24 24">
    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M6 18L18 6M6 6l12 12" />
  </svg>
);

export const AttachmentIcon = ({ className }: TClassName) => (
  <svg
    className={cn('w-[17px] h-4', className)}
    viewBox="0 0 17 16"
    fill="none"
    xmlns="http://www.w3.org/2000/svg"
    role="img"
    aria-hidden="true"
  >
    <path
      d="M16.2056 8.33749L10.9576 13.5854C8.73264 15.8096 5.12529 15.8096 2.90114 13.5854C0.676184 11.3605 0.676184 7.75312 2.90114 5.52816L6.55545 1.87466C8.03339 0.395946 10.4291 0.395946 11.907 1.87466C13.3849 3.35176 13.3849 5.74832 11.907 7.22623L8.34251 10.7907C7.59626 11.5369 6.3871 11.5369 5.64086 10.7907C4.89462 10.0444 4.89462 8.83526 5.64086 8.08902L9.00457 4.72527"
      stroke="currentColor"
      strokeWidth="1.24776"
      strokeLinecap="round"
      strokeLinejoin="round"
    />
  </svg>
);

export const SendIcon = ({ className }: TClassName) => (
  <svg
    className={cn('size-4', className)}
    viewBox="0 0 16 16"
    fill="none"
    xmlns="http://www.w3.org/2000/svg"
    role="img"
    aria-hidden="true"
  >
    <path
      d="M14.733 0.20215C15.0283 0.420508 15.1833 0.797956 15.1278 1.1754L13.2561 14.1521C13.2123 14.4547 13.0397 14.7199 12.7882 14.8696C12.5367 15.0193 12.2355 15.038 11.9694 14.9195L8.47174 13.3692L6.4685 15.6806C6.20822 15.9832 5.7988 16.083 5.43909 15.9333C5.07939 15.7836 4.84543 15.4124 4.84543 15.0006V12.3928C4.84543 12.268 4.8893 12.1495 4.96826 12.059L9.86963 6.35362C10.0392 6.1571 10.0334 5.85452 9.85793 5.66735C9.68246 5.48019 9.39879 5.46771 9.21455 5.64552L3.26623 11.2823L0.683947 9.90351C0.373956 9.73818 0.175094 9.40752 0.16632 9.03943C0.157547 8.67134 0.338862 8.32821 0.637156 8.14416L13.7387 0.158478C14.0516 -0.0318057 14.4376 -0.0130893 14.733 0.20215Z"
      fill="currentColor"
    />
  </svg>
);

// Info circle icon
export const InfoIcon = ({ className }: TClassName) => (
  <svg
    width="20"
    height="20"
    viewBox="0 0 20 20"
    fill="currentColor"
    xmlns="http://www.w3.org/2000/svg"
    className={className}
  >
    <path d="M10 9.25C10.4142 9.25002 10.75 9.5858 10.75 10V13.333C10.75 13.7472 10.4142 14.083 10 14.083C9.58579 14.083 9.25 13.7472 9.25 13.333V10C9.25 9.58579 9.58579 9.25 10 9.25Z" />
    <path d="M10 5.83301C10.5293 5.83303 10.958 6.26273 10.958 6.79199C10.9578 7.3211 10.5291 7.74998 10 7.75C9.47084 7.75 9.04217 7.32111 9.04199 6.79199C9.04199 6.26272 9.47073 5.83301 10 5.83301Z" />
    <path
      fillRule="evenodd"
      clipRule="evenodd"
      d="M10 2.08496C14.3713 2.08496 17.915 5.62867 17.915 10C17.915 14.3713 14.3713 17.915 10 17.915C5.62867 17.915 2.08496 14.3713 2.08496 10C2.08496 5.62867 5.62867 2.08496 10 2.08496ZM10 3.41504C6.3632 3.41504 3.41504 6.3632 3.41504 10C3.41504 13.6368 6.3632 16.585 10 16.585C13.6368 16.585 16.585 13.6368 16.585 10C16.585 6.3632 13.6368 3.41504 10 3.41504Z"
    />
  </svg>
);

/** Retry/refresh icon (circular arrow) */
export const RetryIcon = ({ className }: TClassName) => (
  <svg
    width="20"
    height="20"
    viewBox="0 0 20 20"
    fill="currentColor"
    xmlns="http://www.w3.org/2000/svg"
    className={cn('-ms-0.5', className)}
    aria-hidden="true"
  >
    <path d="M16.4183 9.99967C16.4181 6.45518 13.5448 3.58188 10.0003 3.58171C7.96895 3.58171 6.15935 4.52712 4.98273 6.00163H7.50031L7.6341 6.0153C7.93707 6.07735 8.16535 6.34535 8.16535 6.66667C8.16535 6.98799 7.93707 7.25598 7.6341 7.31803L7.50031 7.33171H3.75031C3.73055 7.33171 3.71104 7.32656 3.69172 7.32487C3.68913 7.32464 3.68649 7.32513 3.68391 7.32487C3.64304 7.32082 3.60409 7.31254 3.56574 7.30143C3.56188 7.30031 3.55788 7.2997 3.55402 7.2985C3.51366 7.286 3.47546 7.27023 3.43879 7.25065L3.43586 7.24967C3.43444 7.24891 3.43337 7.24752 3.43195 7.24675C3.35757 7.20587 3.29219 7.15262 3.23859 7.08757C3.23505 7.08329 3.23128 7.07923 3.22785 7.07487C3.20549 7.04631 3.1858 7.01609 3.16828 6.98405C3.16491 6.97791 3.16169 6.97173 3.15852 6.9655C3.14408 6.93698 3.13265 6.90732 3.12238 6.87663C3.11744 6.86205 3.11264 6.84757 3.10871 6.83268C3.10316 6.81117 3.09843 6.78955 3.09504 6.76725C3.09108 6.74233 3.08833 6.71738 3.08723 6.69206C3.08691 6.68361 3.08527 6.67519 3.08527 6.66667V2.91667C3.08527 2.5494 3.38304 2.25163 3.75031 2.25163C4.11743 2.2518 4.41535 2.54951 4.41535 2.91667V4.62956C5.82462 3.16447 7.80565 2.25163 10.0003 2.25163C14.2793 2.2518 17.7482 5.72065 17.7484 9.99967C17.7484 14.2789 14.2794 17.7485 10.0003 17.7487C6.02899 17.7487 2.75629 14.7612 2.305 10.9108L2.96516 10.8337L3.62531 10.7555C3.99895 13.9437 6.7115 16.4186 10.0003 16.4186C13.5449 16.4184 16.4183 13.5443 16.4183 9.99967ZM2.88801 10.1725C3.25252 10.13 3.58237 10.3911 3.62531 10.7555L2.305 10.9108C2.26225 10.546 2.52323 10.2153 2.88801 10.1725Z" />
  </svg>
);

export const PlusIcon = ({ size = 16, className = '' }) => (
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width={size}
    height={size}
    viewBox="0 0 256 256"
    fill="currentColor"
    className={className}
  >
    <path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z" />
  </svg>
);