chore: show llm code with common component

This commit is contained in:
jialin
2025-05-27 16:50:08 +08:00
parent 61e506010c
commit ca99db5a97
7 changed files with 102 additions and 237 deletions
@@ -6,7 +6,7 @@ import { Button, Modal } from 'antd';
import React, { useMemo, useState } from 'react';
type ViewModalProps = {
title: string;
title?: string;
open: boolean;
viewCodeContent: {
curlCode: string;
@@ -59,7 +59,7 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
return (
<>
<Modal
title={title}
title={title || intl.formatMessage({ id: 'playground.viewcode' })}
open={open}
centered={true}
onCancel={handleClose}