import React from 'react'; import { useTranslation } from 'react-i18next'; import * as styles from './Features.module.less'; interface IFeature { icon: string; title: string; description: string; } interface FeaturesProps { title?: string; features: IFeature[]; } const Feature: React.FC = React.memo( ({ icon, title, description }) => { return (
{title}

{title}

{description}

); }, ); const Features: React.FC = React.memo(({ title, features }) => { const { t } = useTranslation(); return ( <>
{title || t('能力特性')}
{features.map((props, idx) => ( ))}
); }); export default Features;