Files
medusa-store/www/packages/docs-ui/src/components/AiAssistant/CommandIcon/index.tsx
Shahed Nasser b3f75d8f21 docs: add AI Assistant (#5249)
* added components

* added ai assistant button

* change styling

* improve AI assistant

* change to a drawer

* added command support into search

* add AiAssistant to all projects

* remove usage of Text component

* added error handling

* use recaptcha

* fix new configurations

* fix background color

* change suggested questions
2023-10-05 11:10:44 +03:00

25 lines
570 B
TypeScript

import { SparklesSolid } from "@medusajs/icons"
import clsx from "clsx"
import React from "react"
export type AiAssistantCommandIconProps =
React.AllHTMLAttributes<HTMLSpanElement>
export const AiAssistantCommandIcon = ({
className,
...props
}: AiAssistantCommandIconProps) => {
return (
<span
className={clsx(
"bg-button-inverted bg-medusa-button-inverted dark:bg-button-inverted-dark",
"rounded-md p-[2px] text-medusa-fg-on-inverted flex",
className
)}
{...props}
>
<SparklesSolid />
</span>
)
}