challenge.tsx
基本信息
- 类型: React 组件 (TSX)
- 路径:
src/components/book/elements/challenge.tsx
功能描述
============================================================================
导出内容
- <code>PromptChallenge</code> - 函数
- <code>BeforeAfterEditor</code> - 函数
依赖导入
reactnext-intl@/components/ui/button@/lib/utilslucide-react
Props/接口
interface PromptChallengeProps {
title?: string;
task: string;
criteria: string[];
timeLimit?: number; // seconds, 0 = no limit
hints?: string[];
exampleSolution?: string;
difficulty?: "beginner" | "intermediate" | "advanced";
}
使用说明
在 JSX/TSX 中导入使用