Files
web/apps/scandic-web/components/TempDesignSystem/Card/utils.ts
Erik Tiekstra 510f25a812 feat(BOOK-757): Replaced Biroscript component with Typography
Approved-by: Bianca Widstam
2026-01-20 12:37:05 +00:00

25 lines
588 B
TypeScript

import type { ButtonProps } from "@scandic-hotels/design-system/OldDSButton"
import type { CardProps } from "@/components/TempDesignSystem/Card/card"
export function getButtonTheme(
theme: CardProps["theme"]
): ButtonProps["theme"] {
switch (theme) {
case "two":
return "secondaryLight"
case "three":
return "tertiaryLight"
case "primaryDark":
return "primaryDark"
case "primaryStrong":
case "image":
return "primaryStrong"
case "one":
case "primaryDim":
case "primaryInverted":
default:
return "primaryLight"
}
}