"use client" import { ArrowRightIcon, CircleHelpIcon } from "lucide-react" import { cn } from "@/lib/utils" import { useI18n } from "@/i18n/provider" export type PromptStartersProps = { items?: string[] | null onSelect?: (text: string) => void disabled?: boolean className?: string } export function PromptStarters({ items, onSelect, disabled = false, className, }: PromptStartersProps) { const t = useI18n() const safeItems = Array.isArray(items) ? items.map((item) => item.trim()).filter(Boolean) : [] if (safeItems.length === 0) { return null } return (
{safeItems.map((item, index) => ( ))}
) }