File size: 951 Bytes
5916048
d2a6779
 
 
5916048
d2a6779
 
 
 
 
5916048
d2a6779
 
 
 
5916048
 
e97023d
5916048
d2a6779
5916048
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Image from "next/image";
import { TbMenu2 } from "react-icons/tb";

import HFLogo from "assets/hf-logo.svg";

export const EditorHeader = ({
  onToggleMenu,
}: {
  onToggleMenu: () => void;
}) => {
  return (
    <header className="px-4 xl:px-6 py-2.5 border border-slate-950 bg-slate-950 flex justify-between items-center">
      <div className="w-5 h-5 block xl:hidden" onClick={onToggleMenu}>
        <TbMenu2 className="w-full h-full text-slate-100" />
      </div>
      <Image src={HFLogo} alt="Hugging Face Logo" width={34} height={34} />
      <p className="text-gray-300 font-code text-sm font-semibold">
        Hub API Playground
      </p>
      <div className="hidden xl:flex items-center justify-end gap-3">
        <div className="bg-teal-600 w-3 h-3 rounded-full" />
        <div className="bg-indigo-600 w-3 h-3 rounded-full" />
        <div className="bg-purple-500 w-3 h-3 rounded-full" />
      </div>
    </header>
  );
};