parent
f0d3a97107
commit
3f5439cb7d
@ -1,11 +1,27 @@ |
||||
import React from "react"; |
||||
|
||||
import TimelineSection from "./TimelineSection"; |
||||
interface TimelineData { |
||||
time: string; |
||||
text: string; |
||||
} |
||||
|
||||
interface TimelineProps { |
||||
children: typeof TimelineSection; |
||||
data: TimelineData[]; |
||||
/** Distance between consecutive nodes on timeline, in pixels */ |
||||
nodeGap?: number; |
||||
/** Whether the time is transformed to uppercase */ |
||||
isTimeUppercase?: boolean; |
||||
className?: string; |
||||
} |
||||
|
||||
export default function Timeline({ |
||||
data, |
||||
nodeGap = 40, |
||||
isTimeUppercase = true, |
||||
}: TimelineProps) { |
||||
return <div></div>; |
||||
} |
||||
|
||||
export default function Timeline(props: TimelineProps) { |
||||
function TimelineSection() { |
||||
return <div></div>; |
||||
} |
||||
|
@ -1,5 +0,0 @@ |
||||
import React from "react"; |
||||
|
||||
export default function TimelineSection() { |
||||
return <div></div>; |
||||
} |
Loading…
Reference in new issue