Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hayden Bleasel 2026-03-13 13:12:33 -07:00 committed by GitHub
parent 3bc77653ad
commit 453f5bb3e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
94 changed files with 4029 additions and 8199 deletions

View file

@ -1,9 +1,14 @@
"use client";
import type { ComponentProps } from "react";
import { Button } from "@/components/ui/button";
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
import {
ScrollArea,
ScrollBar,
} from "@/components/ui/scroll-area";
import { cn } from "@/lib/utils";
import { useCallback } from "react";
export type SuggestionsProps = ComponentProps<typeof ScrollArea>;
@ -34,9 +39,9 @@ export const Suggestion = ({
children,
...props
}: SuggestionProps) => {
const handleClick = () => {
const handleClick = useCallback(() => {
onClick?.(suggestion);
};
}, [onClick, suggestion]);
return (
<Button