import React from "react";
import PropTypes from 'prop-types';

const TopHeader = ({text}) => {
    return (
        <div className="top-header">
            <img src="/img/logo.png" alt=""/><h1>{text}</h1>
        </div>
    );
}

TopHeader.propTypes = {
    text: PropTypes.string.isRequired
}

export default TopHeader;