feat(SW-391): Added sidepeek functionality to teasercard
This commit is contained in:
@@ -2,11 +2,12 @@ import { VariantProps } from "class-variance-authority"
|
||||
|
||||
import { teaserCardVariants } from "@/components/TempDesignSystem/TeaserCard/variants"
|
||||
|
||||
import { ImageVaultAsset } from "@/types/components/imageVault"
|
||||
import type { ImageVaultAsset } from "@/types/components/imageVault"
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import type { TeaserCard } from "../trpc/routers/contentstack/blocks"
|
||||
|
||||
interface SidePeekButton {
|
||||
title: string
|
||||
call_to_action_text: string
|
||||
}
|
||||
|
||||
export interface TeaserCardProps
|
||||
@@ -16,6 +17,12 @@ export interface TeaserCardProps
|
||||
primaryButton?: CardProps["primaryButton"]
|
||||
secondaryButton?: CardProps["secondaryButton"]
|
||||
sidePeekButton?: SidePeekButton
|
||||
sidePeekContent?: TeaserCard["sidepeek_content"]
|
||||
image?: ImageVaultAsset
|
||||
className?: string
|
||||
}
|
||||
|
||||
export interface TeaserCardSidepeekProps {
|
||||
button: SidePeekButton
|
||||
data: NonNullable<TeaserCard["sidepeek_content"]>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user