import Image from "next/image";
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
// Centered, branded shell shared by every auth page.
export function AuthShell({
title,
subtitle,
children,
footer,
}: {
title: string;
subtitle?: ReactNode;
children: ReactNode;
footer?: ReactNode;
}) {
return (
{title}
{subtitle && (
{subtitle}
)}
{children}
{footer && (
{footer}
)}
);
}
export function Field({
label,
htmlFor,
hint,
children,
}: {
label: string;
htmlFor: string;
hint?: ReactNode;
children: ReactNode;
}) {
return (
{children}
{hint &&
{hint}
}
);
}
export function FormAlert({
tone = "error",
children,
}: {
tone?: "error" | "success";
children: ReactNode;
}) {
return (
{children}
);
}