challenge.tsx

challenge.tsx

基本信息

  • 类型: React 组件 (TSX)
  • 路径: src/components/book/elements/challenge.tsx

功能描述

============================================================================

导出内容

  • <code>PromptChallenge</code> - 函数
  • <code>BeforeAfterEditor</code> - 函数

依赖导入

  • react
  • next-intl
  • @/components/ui/button
  • @/lib/utils
  • lucide-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 中导入使用

← 返回目录