import { Text, Group, UnstyledButton } from "@mantine/core"; import { CustomAvatar } from "@/components/ui/custom-avatar.tsx"; import { formattedDate } from "@/lib/time"; import classes from "./history.module.css"; import clsx from "clsx"; interface HistoryItemProps { historyItem: any; onSelect: (id: string) => void; isActive: boolean; } function HistoryItem({ historyItem, onSelect, isActive }: HistoryItemProps) { return ( onSelect(historyItem.id)} className={clsx(classes.history, { [classes.active]: isActive })} >
{formattedDate(new Date(historyItem.createdAt))}
{historyItem.lastUpdatedBy.name}
); } export default HistoryItem;