25 lines
588 B
TypeScript
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"
|
|
}
|
|
}
|