diff --git a/src/Components/ClosedReason/Component.tsx b/src/Components/ClosedReason/Component.tsx new file mode 100644 index 0000000..f5d53bc --- /dev/null +++ b/src/Components/ClosedReason/Component.tsx @@ -0,0 +1,26 @@ +import * as React from 'react'; +import { Holiday } from '../../Data/index'; + +type ObjectWithHoliday = { holiday: Holiday }; + +export class ClosedReason extends React.Component { + holiday: Holiday; + + constructor(props: ObjectWithHoliday) { + super(props); + this.holiday = props.holiday; + } + + render() { + return ( +
+
+ Closed due to +
+
+ {this.holiday.Description} +
+
+ ); + } +} \ No newline at end of file diff --git a/src/Components/ClosedReason/index.tsx b/src/Components/ClosedReason/index.tsx new file mode 100644 index 0000000..acf137e --- /dev/null +++ b/src/Components/ClosedReason/index.tsx @@ -0,0 +1 @@ +export { ClosedReason } from './Component'; \ No newline at end of file