{preset.title}
{preset.description}
{references.length ? (Try: {preset.samplePrompts[0]}
) : null}import { appPath } from "@agent-native/core/client/api-path"; import { IconBox, IconBrush, IconLayersIntersect } from "@tabler/icons-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import type { LibraryPreset } from "../../../shared/library-presets"; const PRESET_ICONS = [IconBox, IconBrush, IconLayersIntersect]; export function LibraryPresetGrid({ presets, creatingId, onCreate, compact = false, }: { presets: LibraryPreset[]; creatingId?: string | null; onCreate: (presetId: string) => void; compact?: boolean; }) { if (!presets.length) return null; return (
{preset.description}
{references.length ? (Try: {preset.samplePrompts[0]}
) : null}