mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
fix: undeclared variable reference on docs (#5235)
This commit is contained in:
committed by
GitHub
parent
181acde135
commit
6d6df228bc
@@ -10,7 +10,7 @@ import {
|
|||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { Loader2, RefreshCw, SearchIcon, Send, X } from "lucide-react";
|
import { Loader2, SearchIcon, Send, X } from "lucide-react";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { buttonVariants } from "fumadocs-ui/components/ui/button";
|
import { buttonVariants } from "fumadocs-ui/components/ui/button";
|
||||||
import Link from "fumadocs-core/link";
|
import Link from "fumadocs-core/link";
|
||||||
@@ -39,22 +39,6 @@ function SearchAIActions() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{!isLoading && messages.at(-1)?.role === "assistant" && (
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className={cn(
|
|
||||||
buttonVariants({
|
|
||||||
color: "secondary",
|
|
||||||
size: "sm",
|
|
||||||
className: "rounded-full gap-1.5",
|
|
||||||
}),
|
|
||||||
)}
|
|
||||||
onClick={() => regenerate()}
|
|
||||||
>
|
|
||||||
<RefreshCw className="size-4" />
|
|
||||||
Retry
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
Reference in New Issue
Block a user