docs: changes to AI assistant icon + add button to code blocks (#11227)
* docs: changes to AI assistant icon + add button to code blocks * fix code blocks in questions * collapse code block in answer * styling fixes * fix new line at cursor position
This commit is contained in:
@@ -6,6 +6,7 @@ import { Link, Tooltip } from "@/components"
|
||||
import { ExclamationCircle, PlaySolid } from "@medusajs/icons"
|
||||
import { GITHUB_ISSUES_LINK } from "@/constants"
|
||||
import { CodeBlockCopyAction } from "./Copy"
|
||||
import { CodeBlockAskAiAction } from "./AskAi"
|
||||
|
||||
export type CodeBlockActionsProps = {
|
||||
source: string
|
||||
@@ -74,6 +75,7 @@ export const CodeBlockActions = ({
|
||||
]
|
||||
)}
|
||||
>
|
||||
<CodeBlockAskAiAction source={source} inHeader={inHeader} />
|
||||
{canShowApiTesting && (
|
||||
<Tooltip
|
||||
text="Test API"
|
||||
|
||||
Reference in New Issue
Block a user