import { cva } from "class-variance-authority"

import styles from "./footnote.module.css"

const config = {
  variants: {
    color: {
      black: styles.black,
      burgundy: styles.burgundy,
      pale: styles.pale,
    },
    textAlign: {
      center: styles.center,
      left: styles.left,
    },
    textTransform: {
      bold: styles.bold,
      regular: styles.regular,
    },
  },
  defaultVariants: {
    textTransform: "regular",
  },
} as const

export const footnoteVariants = cva(styles.footnote, config)

const fontOnlyConfig = {
  variants: {
    textAlign: {
      center: styles.center,
      left: styles.left,
    },
    textTransform: {
      bold: styles.bold,
      regular: styles.regular,
    },
  },
  defaultVariants: {
    textTransform: "regular",
  },
} as const

export const footnoteFontOnlyVariants = cva(
  styles.footnoteFontOnly,
  fontOnlyConfig
)
