import React, { CSSProperties } from 'react'; import { Card, Typography, Space, List } from '@arco-design/web-react'; import { IconFile } from '@arco-design/web-react/icon'; interface PropsType { title: string; data: { title: string; description: string; }[]; style?: CSSProperties; } export default (props: PropsType) => { const { title, data, style } = props; return (
{title} {data.map((item, index) => { const { title, description } = item; return ( ); })}
); };