From f5ef787ee0ed2953ab85c2f2999031986f059ef2 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 00:13:53 +0300 Subject: feat: add Header and Button --- src/components/Header.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/components/Header.tsx (limited to 'src/components/Header.tsx') diff --git a/src/components/Header.tsx b/src/components/Header.tsx new file mode 100644 index 0000000..e61ac63 --- /dev/null +++ b/src/components/Header.tsx @@ -0,0 +1,20 @@ +import React from 'react'; + +interface Props { + navigation: { + name: string; + route: string; + }[]; +} + +const Header: React.FC = ({ children, navigation }) => { + return ( +
+ {navigation.map(({ name, route }) => ( + {name} + ))} +
+ ); +}; + +export default Header; -- cgit v1.2.3