feat: breadcrumbs for My Pages

This commit is contained in:
Simon Emanuelsson
2024-04-11 18:51:38 +02:00
parent 33b4d1d9fc
commit 38f764e0ff
31 changed files with 228 additions and 87 deletions

View File

@@ -1,10 +1,5 @@
import type { LangParams } from "@/types/params"
import type { Breadcrumbs } from "@/types/breadcrumbs"
type Breadcrumb = {
href?: string
title: string
export type BreadcrumbsProps = {
breadcrumbs: Breadcrumbs
}
export type BreadcrumbsProps = LangParams & {
breadcrumbs: Record<string, Breadcrumb[]>
}

View File

@@ -0,0 +1,5 @@
import type { LangParams, LayoutArgs } from "@/types/params"
export interface MyPagesLayoutProps extends LayoutArgs<LangParams> {
breadcrumbs: React.ReactNode
}