fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
20 lines
513 B
TypeScript
20 lines
513 B
TypeScript
import { cx } from "class-variance-authority"
|
|
import { variants } from "../TextLink/variants"
|
|
import styles from "../TextLink/textLink.module.css"
|
|
import type { TextLinkButtonProps } from "./TextLinkButton"
|
|
|
|
export function getTextLinkClasses({
|
|
theme,
|
|
isDisabled,
|
|
isInline,
|
|
typography,
|
|
className,
|
|
}: TextLinkButtonProps) {
|
|
const variantClasses = variants({ theme, typography, className })
|
|
|
|
return cx(variantClasses, styles, {
|
|
[styles.disabled]: isDisabled,
|
|
[styles.inline]: isInline,
|
|
})
|
|
}
|