import Link from "next/link";
import { ArrowLeft } from "lucide-react";
export function PageHeader({
title,
description,
backHref,
action,
}: {
title: string;
description?: string;
backHref?: string;
action?: React.ReactNode;
}) {
return (
{backHref && (
Geri
)}
{title}
{description && (
{description}
)}
{action}
);
}
export function Field({
label,
name,
type = "text",
defaultValue,
placeholder,
required,
help,
}: {
label: string;
name: string;
type?: string;
defaultValue?: string | number | null;
placeholder?: string;
required?: boolean;
help?: string;
}) {
return (
);
}
export function Textarea({
label,
name,
defaultValue,
rows = 4,
placeholder,
required,
help,
}: {
label: string;
name: string;
defaultValue?: string | null;
rows?: number;
placeholder?: string;
required?: boolean;
help?: string;
}) {
return (
);
}
export function Select({
label,
name,
options,
defaultValue,
}: {
label: string;
name: string;
options: { value: string; label: string }[];
defaultValue?: string | null;
}) {
return (
);
}
export function Checkbox({
label,
name,
defaultChecked,
}: {
label: string;
name: string;
defaultChecked?: boolean;
}) {
return (
);
}
export function FormShell({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
export function FormActions({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
export function PrimaryButton({ children }: { children: React.ReactNode }) {
return (
);
}
export function GhostLink({
href,
children,
}: {
href: string;
children: React.ReactNode;
}) {
return (
{children}
);
}