import type { ButtonProps } from "@/components/TempDesignSystem/Button/button" import type { CardProps } from "@/components/TempDesignSystem/Card/card" import type { LinkProps } from "@/components/TempDesignSystem/Link/link" export function getTheme(theme: CardProps["theme"]) { let buttonTheme: ButtonProps["theme"] = "primaryLight" let primaryLinkColor: LinkProps["color"] = "pale" let secondaryLinkColor: LinkProps["color"] = "burgundy" switch (theme) { case "one": buttonTheme = "primaryLight" primaryLinkColor = "pale" secondaryLinkColor = "burgundy" break case "two": buttonTheme = "secondaryLight" primaryLinkColor = "pale" secondaryLinkColor = "burgundy" break case "three": buttonTheme = "tertiaryLight" primaryLinkColor = "pale" secondaryLinkColor = "burgundy" break case "primaryDark": buttonTheme = "primaryDark" primaryLinkColor = "burgundy" secondaryLinkColor = "pale" break case "primaryDim": buttonTheme = "primaryLight" primaryLinkColor = "pale" secondaryLinkColor = "burgundy" break case "primaryInverted": buttonTheme = "primaryLight" primaryLinkColor = "pale" secondaryLinkColor = "burgundy" break case "primaryStrong": case "image": buttonTheme = "primaryStrong" primaryLinkColor = "red" secondaryLinkColor = "white" } return { buttonTheme: buttonTheme, primaryLinkColor: primaryLinkColor, secondaryLinkColor: secondaryLinkColor, } }