Files
fredy/ui/src/components/segment/SegmentPart.jsx
Christian Kellner d7c9c4bf76 Modernizing ui (#73)
Modernizing ui
2023-03-20 08:52:13 +01:00

19 lines
407 B
JavaScript

import React from 'react';
import { Card } from '@douyinfe/semi-ui';
import './SegmentParts.less';
export const SegmentPart = ({ name, Icon = null, children, helpText }) => {
const { Meta } = Card;
return (
<Card
title={
<Meta title={name} description={helpText} avatar={Icon == null ? null : <Icon size="extra-extra-small" />} />
}
>
{children}
</Card>
);
};