import React from "react";
import { getLabel } from "hooks/getLabel";
import { styled } from "@stitches/react";
export const Label = ({ label, el = "span" }) => {
    const value = getLabel(label, "en");
    const LabelElement = styled(el, {});
    if (!value)
        return null;
    /*
     * Return label value for InternationalString code `en`
     */
    return React.createElement(LabelElement, null, getLabel(label, "en"));
};
//# sourceMappingURL=Label.js.map