Improve chat navigation, model selection, and streaming

This commit is contained in:
Rami Bitar
2026-09-16 13:14:55 -04:00
parent 8790cfb1e2
commit dd04493e25
73 changed files with 1272 additions and 1367 deletions
+6 -4
View File
@@ -8,8 +8,8 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { BookmarkIcon, type LucideProps } from "lucide-react";
import type { ComponentProps, HTMLAttributes } from "react";
import { RiBookmarkLine } from "@remixicon/react";
import type { ComponentProps, HTMLAttributes, ReactNode } from "react";
export type CheckpointProps = HTMLAttributes<HTMLDivElement>;
@@ -27,7 +27,9 @@ export const Checkpoint = ({
</div>
);
export type CheckpointIconProps = LucideProps;
export type CheckpointIconProps = Omit<ComponentProps<typeof RiBookmarkLine>, "children"> & {
children?: ReactNode;
};
export const CheckpointIcon = ({
className,
@@ -35,7 +37,7 @@ export const CheckpointIcon = ({
...props
}: CheckpointIconProps) =>
children ?? (
<BookmarkIcon className={cn("size-4 shrink-0", className)} {...props} />
<RiBookmarkLine className={cn("size-4 shrink-0", className)} {...props} />
);
export type CheckpointTriggerProps = ComponentProps<typeof Button> & {