blob: 68a93f640bbcf1c95483820f983970fbdcaa2824 (
plain)
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
29
30
31
32
33
34
35
36
|
import { HeartIcon, HomeIcon } from "@heroicons/react/24/outline";
import { ChevronLeftIcon } from "@heroicons/react/24/solid";
import Head from "next/head";
import { useRouter } from "next/router";
import Link from "./Link";
const AppBar = ({ title }) => {
const router = useRouter();
return (
<>
<Head>
<title>{ title } - Indoteknik</title>
</Head>
<div className="flex justify-between px-4 py-5 border-b border-gray_r-6">
{/* --- Start Title */}
<button type="button" onClick={() => router.back()} className="flex gap-x-2 items-center text-gray_r-12">
<ChevronLeftIcon className="w-6 stroke-2"/>
<h1>{ title }</h1>
</button>
{/* --- End Title */}
{/* --- Start Icons */}
<div className="flex gap-x-4">
<HeartIcon className="w-6 stroke-2"/>
<Link href="/">
<HomeIcon className="w-6 stroke-2 text-gray_r-12"/>
</Link>
</div>
{/* --- End Icons */}
</div>
</>
);
};
export default AppBar;
|