UNPKG

846 BJavaScriptView Raw
1import React from 'react';
2import classNames from 'classnames';
3import { withNativeProps } from '../../utils/native-props';
4const classPrefix = `adm-step`;
5export const Step = props => {
6 const {
7 title,
8 description,
9 icon,
10 status = 'wait'
11 } = props;
12 return withNativeProps(props, React.createElement("div", {
13 className: classNames(`${classPrefix}`, `${classPrefix}-status-${status}`)
14 }, React.createElement("div", {
15 className: `${classPrefix}-indicator`
16 }, React.createElement("div", {
17 className: `${classPrefix}-icon-container`
18 }, icon)), React.createElement("div", {
19 className: `${classPrefix}-content`
20 }, React.createElement("div", {
21 className: `${classPrefix}-title`
22 }, title), !!description && React.createElement("div", {
23 className: `${classPrefix}-description`
24 }, description))));
25};
\No newline at end of file