import classNames from "classnames"; import { StyleColorVariants, StyleColorVariantsMap } from "core/_variants"; import React from "react"; type Props = { className?: string | undefined; children: string; fontSize?: number; variant?: StyleColorVariants | undefined; }; const hexagonStyles: StyleColorVariantsMap = { gray: "stroke-gray-500", pink: "stroke-pink-500", blue: "stroke-blue-500", purple: "stroke-purple-500", red: "stroke-red-500", yellow: "stroke-yellow-600", emerald: "stroke-emerald-500", sky: "stroke-sky-500", "dark-coral": "stroke-dark-coral-500", }; /** * Hexagon sign * @param {string} children Characters to exclude from svg figure * @param {string|undefined} className Classes used to customize svg element * @param {number} fontSize Font size for excluding characters * @return {JSX.Element} */ export default function HexagonOutlined({ className, children, fontSize = 24, variant, }: Props): JSX.Element { const classes = variant ? hexagonStyles[variant] : "stroke-white"; return ( {children} ); }