import React from "react" import { CheckIcon } from "./check-icon" interface StepProps { label: string description: string complete?: boolean current?: boolean actionLabel?: string onClickAction?: () => void } interface StepStageProps { label: string description: string actionLabel?: string onClickAction?: () => void } interface StepSuccessProps { label: string description: string current: boolean } const StepComplete:React.FC = ({ label, description, }) => { return (
  • {label}

    {description}

  • ) } const StepCurrent:React.FC = ({ label, description, actionLabel, onClickAction, }) => { return (
  • { actionLabel &&
    }

    {label}

    {description}

  • ) } const StepUncomplete: React.FC = ({ label, description, }) => { return (
  • {label}

    {description}

  • ) } export const StepSuccess: React.FC = ({ label, description, current = false }) => { if ( !current ) return null return (
  • {label}

    {description}

  • ) } export const Step:React.FC = ({ label, description, actionLabel, onClickAction, complete = false, current = false }) => { if (current) { return } else if (complete) { return } else { return } }