import TimelineInterval from "./TimelineInterval";
import React from "react";
const Timeline = (props) => {
    const numberOfInterval = (props.timeline.end - props.timeline.start) / props.timeline.interval;
    return (React.createElement("div", { className: "timeline flex h-5 border-b-2 border-l-2 border-t-2 border-gray-400 w-full" },
        React.createElement("div", { className: "w-1/4 border-r-2 border-gray-400" }),
        Array.from({ length: numberOfInterval }, (_, i) => {
            return (React.createElement(TimelineInterval, { key: i, timelineInterval: {
                    width: props.eachIntervalWidth,
                    intervalUnit: props.timeline.intervalUnit,
                    intervalCount: props.timeline.start + (i + 1) * props.timeline.interval,
                } }));
        })));
};
export default Timeline;
//# sourceMappingURL=Index.js.map