@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.
21 lines • 575 B
JavaScript
import * as React from "react";
import cx from "clsx";
import { TYPES } from "../../consts";
const Text = ({
selected,
type,
label,
fontSize
}) => {
return /*#__PURE__*/React.createElement("text", {
className: cx(selected && "fill-white-normal", !selected && type === TYPES.LEGROOM && "fill-blue-dark", !selected && type === TYPES.DEFAULT && "fill-product-dark"),
xmlSpace: "preserve",
fontSize: fontSize,
letterSpacing: "0em",
textAnchor: "middle",
dominantBaseline: "middle",
x: "50%",
y: "55%"
}, label);
};
export default Text;