import Link from "next/link";
import { ReactNode } from "react";
export function Button({
href,
children,
variant = "primary",
className,
type = "button"
}: {
href?: string;
children: ReactNode;
variant?: "primary" | "secondary" | "ghost";
className?: string;
type?: "button" | "submit" | "reset";
}) {
const styleClass =
variant === "primary"
? "bg-gradient-to-br from-primary to-primary-container text-white rounded-full hover:brightness-105 shadow-sm shadow-primary/30"
: variant === "secondary"
? "bg-surface-container-low text-on-surface border border-outline-variant/70 rounded-full hover:bg-surface-container-high"
: "text-on-surface-variant hover:text-on-surface hover:bg-surface-container-low";
if (href) {
return (
{children}
);
}
return (
);
}
export function SectionCard({
title,
description,
children
}: {
title: string;
description?: string;
children: ReactNode;
}) {
return (
{description}{title}
{description ?
ZappCare
{description}