Refactor CloseIcon link to improve accessibility and maintainability
All checks were successful
Build and Deploy Blog / build-and-deploy-local (push) Successful in 38s

This commit is contained in:
2025-09-06 03:07:06 +02:00
parent d8bc5ceb96
commit 294814d131

View File

@@ -1,3 +1,4 @@
import Link from "next/link";
import React from "react";
const CloseIcon = () => (
@@ -64,12 +65,14 @@ export default function Window({
<div className="flex h-4 w-4 items-center justify-center opacity-80">
<MaximizeIcon />
</div>
<div className="flex h-4 w-4 items-center justify-center opacity-80">
<Link
href="/"
className="flex h-4 w-4 items-center justify-center opacity-80"
>
<CloseIcon />
</div>
</Link>
</div>
</div>
{/* Content Area */}
<div className="p-6">{children}</div>
</div>
);