feat: breadcrumbs for My Pages
This commit is contained in:
@@ -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[]>
|
||||
}
|
||||
5
types/components/myPages/layout.ts
Normal file
5
types/components/myPages/layout.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { LangParams, LayoutArgs } from "@/types/params"
|
||||
|
||||
export interface MyPagesLayoutProps extends LayoutArgs<LangParams> {
|
||||
breadcrumbs: React.ReactNode
|
||||
}
|
||||
Reference in New Issue
Block a user