feat(SW-572): Added support for logged in and logged out variants of the top link inside the header
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
import type { LinkProps } from "@/components/TempDesignSystem/Link/link"
|
||||
import type { LinkProps } from "next/link"
|
||||
|
||||
export interface HeaderLinkProps extends React.PropsWithChildren<LinkProps> {}
|
||||
import type { IconName } from "../icon"
|
||||
|
||||
export interface HeaderLinkProps extends React.PropsWithChildren {
|
||||
href: LinkProps["href"]
|
||||
iconName: IconName | null
|
||||
iconSize?: number
|
||||
}
|
||||
|
||||
@@ -4,4 +4,5 @@ import type { Header } from "@/types/trpc/routers/contentstack/header"
|
||||
export interface MobileMenuProps {
|
||||
languageUrls: LanguageSwitcherData
|
||||
topLink: Header["header"]["topLink"]
|
||||
isLoggedIn: boolean
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { Header } from "@/types/trpc/routers/contentstack/header"
|
||||
|
||||
export interface TopLinkProps {
|
||||
isLoggedIn: boolean
|
||||
topLink: Header["header"]["topLink"]
|
||||
iconSize?: number
|
||||
}
|
||||
@@ -82,6 +82,7 @@ export enum IconName {
|
||||
Phone = "Phone",
|
||||
Plus = "Plus",
|
||||
PlusCircle = "PlusCircle",
|
||||
PriceTag = "PriceTag",
|
||||
Restaurant = "Restaurant",
|
||||
RoomService = "RoomService",
|
||||
Sauna = "Sauna",
|
||||
|
||||
Reference in New Issue
Block a user