summaryrefslogtreecommitdiff
path: root/src/components/Header.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-14 00:13:53 +0300
committereug-vs <eug-vs@keemail.me>2021-03-14 00:13:53 +0300
commitf5ef787ee0ed2953ab85c2f2999031986f059ef2 (patch)
tree6324286ec5f796ce9f35d0ea94014a00527dfadd /src/components/Header.tsx
parent1b6e230df7ffd31226af1716f5e442c134ea1c38 (diff)
downloadcommercel-ui-f5ef787ee0ed2953ab85c2f2999031986f059ef2.tar.gz
feat: add Header and Button
Diffstat (limited to 'src/components/Header.tsx')
-rw-r--r--src/components/Header.tsx20
1 files changed, 20 insertions, 0 deletions
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<Props> = ({ children, navigation }) => {
+ return (
+ <header className="bg-black text-white flex">
+ {navigation.map(({ name, route }) => (
+ <a href={route} className="py-6 px-8 font-bold tracking-wide hover:underline">{name}</a>
+ ))}
+ </header>
+ );
+};
+
+export default Header;