fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): inherit color for icon Approved-by: Bianca Widstam Approved-by: Christel Westerberg
28 lines
578 B
TypeScript
28 lines
578 B
TypeScript
"use client"
|
|
import { Button } from "@scandic-hotels/design-system/Button"
|
|
|
|
import { requestOpen } from "@/utils/profilingConsent"
|
|
import { trackConsentAction } from "@/utils/tracking/profilingConsent"
|
|
|
|
interface BannerButtonProps {
|
|
cta: string
|
|
}
|
|
|
|
export function BannerButton({ cta }: BannerButtonProps) {
|
|
function handleOpenModal() {
|
|
trackConsentAction({ position: "banner", name: cta })
|
|
requestOpen()
|
|
}
|
|
|
|
return (
|
|
<Button
|
|
variant="Secondary"
|
|
color="Primary"
|
|
size="sm"
|
|
onPress={handleOpenModal}
|
|
>
|
|
{cta}
|
|
</Button>
|
|
)
|
|
}
|