import React from "react"; import { COLORS } from "styles/var/colors"; const baseClass = "progress-bar"; export interface IProgressBarSection { color: string; portion: number; // Value between 0 and 1 } export interface IProgressBar { sections: IProgressBarSection[]; backgroundColor?: string; } const ProgressBar = ({ sections, backgroundColor = COLORS["ui-fleet-black-10"], }: IProgressBar) => { return (
{sections.map((section, index) => (
))}
); }; export default ProgressBar;