infinite-prompt-list.tsx

infinite-prompt-list.tsx

基本信息

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

功能描述

Reset when new data arrives from server

导出内容

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

依赖导入

  • react
  • next/navigation
  • next-intl
  • @/components/ui/skeleton
  • @/components/ui/button
  • @/components/ui/masonry
  • @/lib/plugins/widgets
  • lucide-react
  • ./filter-context
  • ./prompt-card
  • ./widget-card

Props/接口

interface InfinitePromptListProps {
initialPrompts: PromptCardProps["prompt"][];
initialTotal: number;
filters: {
q?: string;
type?: string;
category?: string;
categorySlug?: string;
tag?: string;
sort?: string;
}

使用说明

在 JSX/TSX 中导入使用

← 返回目录