import React from 'react'; import { cx } from '@leafygreen-ui/emotion'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { StepIcon } from '../StepIcon'; import { StepLabel } from '../StepLabel'; import { StepStates } from '../types'; import { baseStyles, completedLineStyles, lineStyles, } from './InternalStep.styles'; import { InternalStepProps } from '.'; export const InternalStep = ({ children, index, state, ariaLabel = `step${index || ''}`, shouldDisplayLine = true, iconSize = 20, className, ...rest }: InternalStepProps) => { const { darkMode, theme } = useDarkMode(); const isCurrent = state === StepStates.Current; const isCompleted = state === StepStates.Completed || state === StepStates.CompletedMultiple; return (
{index} {children}
); };