import { FC, useMemo } from 'react'; import { Base, BaseProps, Flex } from '..'; interface LayoutProgressBarProps extends BaseProps { text: string; progress: number; maxProgress?: number; } export const LayoutProgressBar: FC = props => { const { text = '', progress = 0, maxProgress = 0, position = 'relative', classNames = [], children = null, ...rest } = props; const getClassNames = useMemo(() => { const newClassNames: string[] = [ 'progress', 'text-black' ]; if(classNames.length) newClassNames.push(...classNames); return newClassNames; }, [ classNames ]); return ( { text } { children } ); }