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