widget-card.tsx

widget-card.tsx

基本信息

  • 类型: React 组件 (TSX)
  • 路径: src/components/prompts/widget-card.tsx

功能描述

If widget has a custom render function, use it

导出内容

  • <code>WidgetCardProps</code> - 接口

依赖导入

  • react
  • next/link
  • next/image
  • next-intl
  • @/components/ui/badge
  • @/lib/analytics
  • @/lib/plugins/widgets
  • lucide-react
  • sonner
  • @/components/prompts/run-prompt-button

Props/接口

interface WidgetCardProps {
prompt: WidgetPrompt;
}

使用说明

在 JSX/TSX 中导入使用

← 返回目录