import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { Badge } from "@/components/ui/badge"; import { Check } from "lucide-react"; import { PAGE_QUERY_RESULT, ColorVariant } from "@/sanity.types"; type Block = NonNullable["blocks"]>[number]; type GridRow = Extract; type GridColumn = NonNullable>[number]; type PricingCard = Extract; interface PricingCardProps extends Omit { color?: ColorVariant; } export default function PricingCard({ color, title, tagLine, excerpt, price, list, link, }: PricingCardProps) { return (
{title && (

{title}

{tagLine && {tagLine}}
)} {price && price.value !== null && price.value !== undefined && (
${price.value}
{price.period &&
{price.period}
}
)} {list && list.length > 0 && (
    {list.map((item) => (
  • {item}
  • ))}
)} {excerpt &&

{excerpt}

}
); }