import { useStore } from "@/_models/RootStore"; import Image from "next/image"; import React from "react"; type Props = { imageUrl: string; isSelected: boolean; conversationId: string; }; const CompactHistoryItem: React.FC = ({ imageUrl, isSelected, conversationId, }) => { const { historyStore } = useStore(); const onClick = () => { historyStore.setActiveConversationId(conversationId); }; return ( ); }; export default React.memo(CompactHistoryItem);