"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "useTranslation", {
    enumerable: true,
    get: function() {
        return useTranslation;
    }
});
const _reactintl = require("react-intl");
function useTranslation() {
    const { formatMessage } = (0, _reactintl.useIntl)();
    const translation = (id, options)=>{
        const { defaultMessage, description, values } = options || {};
        return formatMessage({
            id,
            defaultMessage,
            description
        }, values);
    };
    return translation;
}

//# sourceMappingURL=useTranslation.js.map