mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-03 13:53:22 +00:00
27 lines
728 B
TypeScript
27 lines
728 B
TypeScript
import type { ComponentPropsWithoutRef } from "react";
|
|
|
|
import { Text } from "@/components/ui/text";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
export type AuthCardHeaderProps = ComponentPropsWithoutRef<"div"> & {
|
|
title: string;
|
|
subtitle?: string;
|
|
};
|
|
|
|
export function AuthCardHeader({ title, subtitle, className, ...props }: AuthCardHeaderProps) {
|
|
return (
|
|
<div className={cn(className)} {...props}>
|
|
<Text variant="title" className="m-0 text-center font-bold text-foreground">
|
|
{title}
|
|
</Text>
|
|
<Text
|
|
variant="description"
|
|
tone="muted"
|
|
when={Boolean(subtitle)}
|
|
className="mb-6! mt-1.5! text-center font-normal"
|
|
>
|
|
{subtitle}
|
|
</Text>
|
|
</div>
|
|
);
|
|
}
|