import React from 'react' import { Popup } from 'UI' import cn from 'classnames' import MetaItem from '../MetaItem'; import MetaMoreButton from '../MetaMoreButton'; interface Props { className?: string, metaList: any[], maxLength?: number, } export default function SessionMetaList(props: Props) { const { className = '', metaList, maxLength = 4 } = props return (
{metaList.slice(0, maxLength).map(({ label, value }, index) => ( ))} {metaList.length > maxLength && ( )}
) }