'use client' import cn from 'classnames' import type { ReactNode } from 'react' export type TStepStatus = 'completed' | 'incomplete' | 'current' export interface IPktStep { /** * Step content. Can be a string, a React component or an element. */ children?: ReactNode /** * Additional class names */ className?: string /** * Step status. Can be 'completed', 'incomplete' or 'current' */ status: TStepStatus /** * Title of the step */ title: string } const incompleteStepSVG = ( ) const currentStepSVG = ( ) const completedStepSVG = ( ) export const PktStep = ({ children, className, status = 'incomplete', title }: IPktStep) => { return (
  • {status === 'current' ? currentStepSVG : status === 'completed' ? completedStepSVG : incompleteStepSVG}
    {title}
    {children}
  • ) }