diff options
Diffstat (limited to 'FrontEnd/src/views/timeline-common/TimelineTop.tsx')
-rw-r--r-- | FrontEnd/src/views/timeline-common/TimelineTop.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/FrontEnd/src/views/timeline-common/TimelineTop.tsx b/FrontEnd/src/views/timeline-common/TimelineTop.tsx new file mode 100644 index 00000000..dabbdf1e --- /dev/null +++ b/FrontEnd/src/views/timeline-common/TimelineTop.tsx @@ -0,0 +1,27 @@ +import React from "react"; +import classnames from "classnames"; + +import TimelineLine, { TimelineLineProps } from "./TimelineLine"; + +export interface TimelineTopProps { + height?: number | string; + lineProps?: TimelineLineProps; + className?: string; + style?: React.CSSProperties; +} + +const TimelineTop: React.FC<TimelineTopProps> = (props) => { + const { height, style, className } = props; + const lineProps = props.lineProps ?? { center: "none" }; + + return ( + <div + style={{ ...style, height: height }} + className={classnames("timeline-top", className)} + > + <TimelineLine {...lineProps} /> + </div> + ); +}; + +export default TimelineTop; |