import { RAGFlowAvatar } from '@/components/ragflow-avatar'; import { Card, CardContent } from '@/components/ui/card'; import { formatDate } from '@/utils/date'; import { ReactNode } from 'react'; interface IProps { data: { name: string; description?: string; avatar?: string; update_time?: string | number; }; onClick?: () => void; moreDropdown: React.ReactNode; sharedBadge?: ReactNode; icon?: React.ReactNode; } export function HomeCard({ data, onClick, moreDropdown, sharedBadge, icon, }: IProps) { return ( { // navigateToSearch(data?.id); onClick?.(); }} >
{data.name}
{icon}
{moreDropdown}
{data.description}

{formatDate(data.update_time)}

{sharedBadge}
); }