import * as classNames from "classnames"; import * as _ from "lodash"; import * as React from "react"; import Circle from "react-circle"; import { Loading, LoadingType } from "../Loading"; export enum ProgressType { Stepwise = "Stepwise", Circle = "Circle", } interface IStep { id: string; text?: string, } interface IProgressProps { type: ProgressType; steps?: IStep[]; activeStep?: IStep; progress?: number; } export class Progress extends React.PureComponent { public render() { return (
{this.props.type === ProgressType.Stepwise && this.renderStepwise()} {this.props.type === ProgressType.Circle && this.renderCircle()}
); } private renderCircle() { return ( ); } private renderStepwise() { return ( <>
{this.props.steps.map(step => { return (
{step.text}
); })}
); } }