chore: cleanup
This commit is contained in:
6
types/components/header/avatar.ts
Normal file
6
types/components/header/avatar.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { ImageProps } from "next/image"
|
||||
|
||||
export interface AvatarProps {
|
||||
image?: ImageProps
|
||||
initials?: string | null
|
||||
}
|
||||
5
types/components/header/languageSwitcher.ts
Normal file
5
types/components/header/languageSwitcher.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { LanguageSwitcherData } from "@/types/requests/languageSwitcher"
|
||||
|
||||
export interface LanguageSwitcherProps {
|
||||
urls: LanguageSwitcherData
|
||||
}
|
||||
2
types/components/header/mainMenuButton.ts
Normal file
2
types/components/header/mainMenuButton.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export interface MainMenuButtonProps
|
||||
extends React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
||||
20
types/components/header/mainNavigationItem.ts
Normal file
20
types/components/header/mainNavigationItem.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface MainNavigationItem {
|
||||
id: string
|
||||
title: string
|
||||
href: string
|
||||
children?: {
|
||||
groupTitle: string
|
||||
children: {
|
||||
id: string
|
||||
title: string
|
||||
href: string
|
||||
}[]
|
||||
}[]
|
||||
seeAllLinkText?: string
|
||||
infoCard?: {
|
||||
scriptedTitle: string
|
||||
title: string
|
||||
description: string
|
||||
ctaLink: string
|
||||
}
|
||||
}
|
||||
12
types/components/header/myPagesMenu.ts
Normal file
12
types/components/header/myPagesMenu.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { navigationQueryRouter } from "@/server/routers/contentstack/myPages/navigation/query"
|
||||
|
||||
import { User } from "@/types/user"
|
||||
|
||||
type MyPagesNavigation = Awaited<
|
||||
ReturnType<(typeof navigationQueryRouter)["get"]>
|
||||
>
|
||||
|
||||
export interface MyPagesMenuProps {
|
||||
navigation: MyPagesNavigation
|
||||
user: Pick<User, "firstName" | "lastName"> | null
|
||||
}
|
||||
5
types/components/header/navigationMenu.ts
Normal file
5
types/components/header/navigationMenu.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { MainNavigationItem } from "@/types/components/header/mainNavigationItem"
|
||||
|
||||
export interface NavigationMenuProps {
|
||||
items: MainNavigationItem[]
|
||||
}
|
||||
5
types/components/header/navigationMenuItem.ts
Normal file
5
types/components/header/navigationMenuItem.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { MainNavigationItem } from "@/types/components/header/mainNavigationItem"
|
||||
|
||||
export interface NavigationMenuItemProps {
|
||||
item: MainNavigationItem
|
||||
}
|
||||
2
types/components/header/topMenuButton.ts
Normal file
2
types/components/header/topMenuButton.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export interface TopMenuButtonProps
|
||||
extends React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
||||
Reference in New Issue
Block a user