'use client' import type { ComponentProps } from 'react' import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area' 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 ( ) }