From 803c17b16e8c1f93450e8bd6f5a17cefe40d5353 Mon Sep 17 00:00:00 2001 From: OWK50GA Date: Mon, 22 Jul 2024 14:44:36 +0100 Subject: [PATCH 1/4] feat: Breadcrumb worked on for external static pages --- app/components/BreadCrumbs.tsx | 125 ++++++++++++++++++++ app/components/PricingPaymentBreadCrumb.tsx | 40 +++++++ app/routes/pricing.payment.tsx | 4 + 3 files changed, 169 insertions(+) create mode 100644 app/components/BreadCrumbs.tsx create mode 100644 app/components/PricingPaymentBreadCrumb.tsx diff --git a/app/components/BreadCrumbs.tsx b/app/components/BreadCrumbs.tsx new file mode 100644 index 00000000..65882a15 --- /dev/null +++ b/app/components/BreadCrumbs.tsx @@ -0,0 +1,125 @@ +import { Slot } from "@radix-ui/react-slot"; +import { ChevronRight, MoreHorizontal } from "lucide-react"; +import { + forwardRef, + type ComponentProps, + type ComponentPropsWithoutRef, + type ReactNode, +} from "react"; + +import { cn } from "~/lib/utils/cn"; + +const Breadcrumb = forwardRef< + HTMLElement, + ComponentPropsWithoutRef<"nav"> & { + separator?: ReactNode; + } +>(({ ...properties }, reference) => ( +