TimeIntervals is a simple module provides interactive presentation on time periods
You can add your date with time periods, and events for interactive presentation
$ npm i time-intervals
Import the component
import { NotesInAHurry } from 'notesinahurry';
Add props: title: string; list: PeriodType[]
Types:
type PeriodType = {
id: string;
title: string;
yearStart: number;
yearEnd: number;
eventsList: IntervalEventType[]
}
type IntervalEventType = {
year: number;
description: string;
}