feat(BOOK-757): Moved TeaserCard to design system and added stories
Approved-by: Bianca Widstam
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import type { ImageVaultAsset } from "@scandic-hotels/common/utils/imageVault"
|
||||
import type { TeaserCard } from "@scandic-hotels/trpc/types/blocks"
|
||||
import type { VariantProps } from "class-variance-authority"
|
||||
|
||||
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
|
||||
import type { teaserCardVariants } from "@/components/TempDesignSystem/TeaserCard/variants"
|
||||
|
||||
interface SidePeekButton {
|
||||
call_to_action_text: string
|
||||
}
|
||||
|
||||
export interface TeaserCardProps
|
||||
extends VariantProps<typeof teaserCardVariants> {
|
||||
title: string
|
||||
description: string
|
||||
primaryButton?: CardProps["primaryButton"]
|
||||
secondaryButton?: CardProps["secondaryButton"]
|
||||
sidePeekButton?: SidePeekButton
|
||||
sidePeekContent?: TeaserCard["sidepeek_content"]
|
||||
image?: ImageVaultAsset
|
||||
className?: string
|
||||
}
|
||||
|
||||
export interface TeaserCardSidepeekProps {
|
||||
button: SidePeekButton
|
||||
sidePeekContent: NonNullable<TeaserCard["sidepeek_content"]>
|
||||
}
|
||||
Reference in New Issue
Block a user