chore: cleanup

This commit is contained in:
Erik Tiekstra
2024-08-21 08:18:22 +02:00
parent c6ad5eecc5
commit 0dcb5a796a
32 changed files with 291 additions and 288 deletions

View File

@@ -0,0 +1,6 @@
import { ImageProps } from "next/image"
export interface AvatarProps {
image?: ImageProps
initials?: string | null
}

View File

@@ -0,0 +1,5 @@
import { LanguageSwitcherData } from "@/types/requests/languageSwitcher"
export interface LanguageSwitcherProps {
urls: LanguageSwitcherData
}

View File

@@ -0,0 +1,2 @@
export interface MainMenuButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {}

View 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
}
}

View 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
}

View File

@@ -0,0 +1,5 @@
import { MainNavigationItem } from "@/types/components/header/mainNavigationItem"
export interface NavigationMenuProps {
items: MainNavigationItem[]
}

View File

@@ -0,0 +1,5 @@
import { MainNavigationItem } from "@/types/components/header/mainNavigationItem"
export interface NavigationMenuItemProps {
item: MainNavigationItem
}

View File

@@ -0,0 +1,2 @@
export interface TopMenuButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {}