import { Card, CardContent, CardDescription, CardEyebrow, CardHeader, CardTitle, } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import type { ResourcePickerOption } from "@/features/orders/resource-picker-options"; type ResourcePickerCardProps = { description: string; disabled?: boolean; isLoading?: boolean; label: string; selectedItem: ResourcePickerOption | null; title: string; onOpenPicker: () => void; }; export function ResourcePickerCard({ description, disabled = false, isLoading = false, label, selectedItem, title, onOpenPicker, }: ResourcePickerCardProps) { return ( Resource manager {title} {description}
{label}
{selectedItem ? (
{selectedItem.previewUri ? ( // eslint-disable-next-line @next/next/no-img-element {`${selectedItem.name} ) : null}

{selectedItem.name}

{selectedItem.description}

{selectedItem.tags.map((tag) => ( {tag} ))}
) : (

通过资源管理器弹窗直接点选图片,选择后会在摘要卡中同步显示资源名称与提交 ID。

)}
); }