import { AIProblemEditor } from '@/components/ai-optimized-editor'; export default function TestAiEditorPage() { // 静态测试数据 const testInput = { code: `function bubbleSort(arr: number[]) { const n = arr.length; for (let i = 0; i < n-1; i++) { for (let j = 0; j < n-i-1; j++) { if (arr[j] > arr[j+1]) { [arr[j], arr[j+1]] = [arr[j+1], arr[j]]; } } } return arr; }`, problemId: '1', }; return (
{testInput.code}