2025-10-24 22:20:37 +00:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import { Button } from "@mantine/core";
|
|
|
|
|
import { Link } from "next-view-transitions";
|
2025-10-24 23:33:08 +00:00
|
|
|
import type { AlbumTheme } from "@/lib/themes";
|
2025-10-24 22:20:37 +00:00
|
|
|
|
2025-10-24 23:33:08 +00:00
|
|
|
interface BackButtonProps {
|
|
|
|
|
theme?: AlbumTheme;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function BackButton({ theme }: BackButtonProps) {
|
2025-10-24 22:20:37 +00:00
|
|
|
return (
|
|
|
|
|
<Button
|
|
|
|
|
component={Link}
|
|
|
|
|
href="/"
|
|
|
|
|
variant="subtle"
|
2025-10-24 23:33:08 +00:00
|
|
|
className="mb-8 transition-all duration-200"
|
|
|
|
|
style={{
|
|
|
|
|
color: theme?.text.secondary || "#d1d5db",
|
|
|
|
|
backgroundColor: "transparent",
|
|
|
|
|
}}
|
|
|
|
|
onMouseEnter={(e) => {
|
|
|
|
|
e.currentTarget.style.backgroundColor = theme?.card.background || "rgba(31, 41, 55, 0.5)";
|
|
|
|
|
e.currentTarget.style.color = theme?.text.primary || "#ffffff";
|
|
|
|
|
}}
|
|
|
|
|
onMouseLeave={(e) => {
|
|
|
|
|
e.currentTarget.style.backgroundColor = "transparent";
|
|
|
|
|
e.currentTarget.style.color = theme?.text.secondary || "#d1d5db";
|
|
|
|
|
}}
|
2025-10-24 22:20:37 +00:00
|
|
|
>
|
|
|
|
|
← Back to Albums
|
|
|
|
|
</Button>
|
|
|
|
|
);
|
|
|
|
|
}
|