Merge branch 'develop' into feat/sw-386-header-fixes
This commit is contained in:
21
types/components/contentCard.ts
Normal file
21
types/components/contentCard.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { VariantProps } from "class-variance-authority"
|
||||
|
||||
import { contentCardVariants } from "@/components/TempDesignSystem/ContentCard/variants"
|
||||
|
||||
import { ImageVaultAsset } from "@/types/components/imageVault"
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
|
||||
interface SidePeekButton {
|
||||
title: string
|
||||
}
|
||||
|
||||
export interface ContentCardProps
|
||||
extends VariantProps<typeof contentCardVariants> {
|
||||
title: string
|
||||
description: string
|
||||
primaryButton?: CardProps["primaryButton"]
|
||||
secondaryButton?: CardProps["secondaryButton"]
|
||||
sidePeekButton?: SidePeekButton
|
||||
backgroundImage?: ImageVaultAsset
|
||||
className?: string
|
||||
}
|
||||
@@ -1,6 +1,25 @@
|
||||
import { ReactElement } from "react"
|
||||
|
||||
import type { LanguageSwitcherData } from "@/types/requests/languageSwitcher"
|
||||
|
||||
export enum LanguageSwitcherTypesEnum {
|
||||
MobileHeader = "mobileHeader",
|
||||
DesktopHeader = "desktopHeader",
|
||||
Footer = "footer",
|
||||
}
|
||||
|
||||
export type LanguageSwitcherTypes = `${LanguageSwitcherTypesEnum}`
|
||||
|
||||
export interface LanguageSwitcherProps {
|
||||
type: "mobileHeader" | "desktopHeader" | "footer"
|
||||
type: LanguageSwitcherTypes
|
||||
urls: LanguageSwitcherData
|
||||
}
|
||||
|
||||
export interface LanguageSwitcherContentProps {
|
||||
urls: LanguageSwitcherData
|
||||
}
|
||||
|
||||
export interface LanguageSwitcherContainerProps {
|
||||
type: LanguageSwitcherTypes
|
||||
children: ReactElement<any, any>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user