* 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
25 lines
570 B
TypeScript
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>
|
|
)
|
|
}
|