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;
