'use client'; import { Button } from '@/components/ui/button'; import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area'; import { cn } from '@/lib/utils'; import type { ComponentProps } from 'react'; export type SuggestionsProps = ComponentProps; export const Suggestions = ({ className, children, ...props }: SuggestionsProps) => (
{children}
); export type SuggestionProps = Omit, 'onClick'> & { suggestion: string; onClick?: (suggestion: string) => void; }; export const Suggestion = ({ suggestion, onClick, className, variant = 'outline', size = 'sm', children, ...props }: SuggestionProps) => { const handleClick = () => { onClick?.(suggestion); }; return ( ); };