diff --git a/sparkle/src/components/AssistantCard.tsx b/sparkle/src/components/AssistantCard.tsx index aca107a178d15..bb204f61a08cb 100644 --- a/sparkle/src/components/AssistantCard.tsx +++ b/sparkle/src/components/AssistantCard.tsx @@ -1,6 +1,11 @@ import React from "react"; -import { Avatar, Button, ButtonProps, Card } from "@sparkle/components/"; +import { + Avatar, + ButtonProps, + Card, + CardActionButton, +} from "@sparkle/components/"; import { MoreIcon } from "@sparkle/icons/"; import { cn } from "@sparkle/lib/utils"; @@ -13,76 +18,13 @@ interface BaseAssistantCardProps { onClick?: () => void; } -interface MetaAssistantCardProps { - className?: string; - variant: "sm" | "lg"; - onClick?: () => void; - children: React.ReactNode; - action?: React.ReactNode; -} - -const MetaAssistantCard = React.forwardRef< - HTMLDivElement, - MetaAssistantCardProps ->(({ className, variant, action, onClick, children }, ref) => { - return ( -
- - {children} - - {action && {action}} -
- ); -}); -MetaAssistantCard.displayName = "MetaAssistantCard"; - -const AssistantCardAction = React.forwardRef< - HTMLDivElement, - React.ComponentPropsWithoutRef<"div"> & { - children: React.ReactNode; - } ->(({ children, ...props }, ref) => { - return ( -
- {children} -
- ); -}); - -AssistantCardAction.displayName = "AssistantCardAction"; - type AssistantCardMore = ButtonProps; export const AssistantCardMore = React.forwardRef< HTMLButtonElement, - AssistantCardMore & { - className?: string; - } ->(({ className }, ref) => { - return ( -