Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/elements/src/artifact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import {
TooltipTrigger,
} from "@repo/shadcn-ui/components/ui/tooltip";
import { cn } from "@repo/shadcn-ui/lib/utils";
import type { LucideIcon } from "lucide-react";
import { XIcon } from "lucide-react";
import type { ComponentProps, HTMLAttributes } from "react";
import type { ComponentProps, ComponentType, HTMLAttributes } from "react";

export type ArtifactProps = HTMLAttributes<HTMLDivElement>;

Expand Down Expand Up @@ -93,7 +92,7 @@ export const ArtifactActions = ({
export type ArtifactActionProps = ComponentProps<typeof Button> & {
tooltip?: string;
label?: string;
icon?: LucideIcon;
icon?: ComponentType<{ className?: string }>;
};

export const ArtifactAction = ({
Expand Down
5 changes: 2 additions & 3 deletions packages/elements/src/chain-of-thought.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import {
CollapsibleTrigger,
} from "@repo/shadcn-ui/components/ui/collapsible";
import { cn } from "@repo/shadcn-ui/lib/utils";
import type { LucideIcon } from "lucide-react";
import { BrainIcon, ChevronDownIcon, DotIcon } from "lucide-react";
import type { ComponentProps, ReactNode } from "react";
import type { ComponentProps, ComponentType, ReactNode } from "react";
import { createContext, memo, useContext, useMemo } from "react";

interface ChainOfThoughtContextValue {
Expand Down Expand Up @@ -102,7 +101,7 @@ export const ChainOfThoughtHeader = memo(
);

export type ChainOfThoughtStepProps = ComponentProps<"div"> & {
icon?: LucideIcon;
icon?: ComponentType<{ className?: string }>;
label: ReactNode;
description?: ReactNode;
status?: "complete" | "active" | "pending";
Expand Down
5 changes: 2 additions & 3 deletions packages/elements/src/checkpoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import {
TooltipTrigger,
} from "@repo/shadcn-ui/components/ui/tooltip";
import { cn } from "@repo/shadcn-ui/lib/utils";
import type { LucideProps } from "lucide-react";
import { BookmarkIcon } from "lucide-react";
import type { ComponentProps, HTMLAttributes } from "react";
import type { ComponentProps, HTMLAttributes, SVGProps } from "react";

export type CheckpointProps = HTMLAttributes<HTMLDivElement>;

Expand All @@ -31,7 +30,7 @@ export const Checkpoint = ({
</div>
);

export type CheckpointIconProps = LucideProps;
export type CheckpointIconProps = SVGProps<SVGSVGElement>;

export const CheckpointIcon = ({
className,
Expand Down