diff --git a/packages/elements/src/artifact.tsx b/packages/elements/src/artifact.tsx index 4d5fef41..1a06751f 100644 --- a/packages/elements/src/artifact.tsx +++ b/packages/elements/src/artifact.tsx @@ -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; @@ -93,7 +92,7 @@ export const ArtifactActions = ({ export type ArtifactActionProps = ComponentProps & { tooltip?: string; label?: string; - icon?: LucideIcon; + icon?: ComponentType<{ className?: string }>; }; export const ArtifactAction = ({ diff --git a/packages/elements/src/chain-of-thought.tsx b/packages/elements/src/chain-of-thought.tsx index f1b26601..2126571b 100644 --- a/packages/elements/src/chain-of-thought.tsx +++ b/packages/elements/src/chain-of-thought.tsx @@ -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 { @@ -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"; diff --git a/packages/elements/src/checkpoint.tsx b/packages/elements/src/checkpoint.tsx index ab7900ce..1e1d4fe2 100644 --- a/packages/elements/src/checkpoint.tsx +++ b/packages/elements/src/checkpoint.tsx @@ -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; @@ -31,7 +30,7 @@ export const Checkpoint = ({ ); -export type CheckpointIconProps = LucideProps; +export type CheckpointIconProps = SVGProps; export const CheckpointIcon = ({ className,