import React from 'react'; import { Row, Col, Button } from 'antd'; import { PlusOutlined } from '@ant-design/icons'; import classNames from 'classnames'; import * as styles from './Companies.module.less'; interface Company { name: string; img: string; } interface CompaniesProps { title: string; companies: Company[]; addMoreLink?: string; addMoreText?: string; className?: string; style?: React.CSSProperties; } const Companies: React.FC = ({ title, companies = [], className, addMoreLink = '', addMoreText = '添加您的公司', style, }) => { const getCompanies = companies.map((company) => ( {company.name} )); return (

{title}

{getCompanies} {addMoreLink && ( )}
); }; export default Companies;