import React from 'react'; import { Popover } from 'UI'; import { Button } from 'antd'; import MetaItem from '../MetaItem'; import { useTranslation } from 'react-i18next'; interface Props { list: any[]; maxLength: number; } export default function MetaMoreButton(props: Props) { const { list, maxLength } = props; const { t } = useTranslation(); return ( (
{list.slice(maxLength).map(({ label, value }, index) => ( ))}
)} placement="bottom" >
); }