'use client'; import type { AgentMenuItem } from '@/types'; interface QuickActionsProps { actions: AgentMenuItem[]; onSelect: (action: string) => void; } export function QuickActions({ actions, onSelect }: QuickActionsProps) { // Show max 6 actions const displayActions = actions.slice(0, 6); return (
{displayActions.map((action, index) => ( ))}
); } function extractLabel(description: string): string { // Remove [XX] prefix from description return description.replace(/^\[[\w-]+\]\s*/, ''); }