import React from 'react';
import { Link, useNavigate } from 'react-router-dom';

const Header = () => {
  const navigate = useNavigate();

  return (
    <header>
      <h1>Mewar University</h1>
      <p>Result Management System</p>
      <nav className="nav-buttons">
        <button 
          onClick={() => navigate('/')} 
          className="nav-button"
        >
          Check Results
        </button>
        <button 
          onClick={() => navigate('/admin')} 
          className="nav-button"
        >
          Admin Login
        </button>
      </nav>
    </header>
  );
};

export default Header;