import type { FC } from 'react' import Item from './item' import type { ConversationItem } from '@/models/share' type ListProps = { isPin?: boolean title?: string list: ConversationItem[] onOperate: (type: string, item: ConversationItem) => void onChangeConversation: (conversationId: string) => void currentConversationId: string } const List: FC = ({ isPin, title, list, onOperate, onChangeConversation, currentConversationId, }) => { return (
{ title && (
{title}
) } { list.map(item => ( )) }
) } export default List