interactive-prompt-content.tsx

interactive-prompt-content.tsx

基本信息

  • 类型: React 组件 (TSX)
  • 路径: src/components/prompts/interactive-prompt-content.tsx

功能描述

Parse ${variablename:defaultvalue} or ${variablename} patterns

导出内容

  • <code>InteractivePromptContent</code> - 函数

依赖导入

  • react
  • next-intl
  • @/components/ui/button
  • @/components/ui/input
  • @/components/ui/label
  • @/components/ui/code-view
  • @/components/ui/code-editor
  • @/lib/format
  • lucide-react
  • sonner
  • ./run-prompt-button
  • ./translate-button
  • ./download-prompt-dropdown

Props/接口

interface InteractivePromptContentProps {
content: string;
className?: string;
isStructured?: boolean;
structuredFormat?: "json" | "yaml";
title?: string;
description?: string;
isLoggedIn?: boolean;
categoryName?: string;
parentCategoryName?: string;
promptId?: string;
}

使用说明

在 JSX/TSX 中导入使用

← 返回目录