usa-map-react
Version: 
Forked and refactored to use typescript from [https://github.com/gabidavila/react-usa-map](https://github.com/gabidavila/react-usa-map)
17 lines (16 loc) • 871 B
JavaScript
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
export var USAState = function (_a) {
    var state = _a.state, dimensions = _a.dimensions, fill = _a.fill, onClickState = _a.onClickState, stateName = _a.stateName, hideStateTitle = _a.hideStateTitle;
    return (_jsx("path", __assign({ d: dimensions, fill: fill, "data-name": state, className: state + " state", onClick: onClickState }, { children: hideStateTitle ? null : _jsx("title", { children: stateName }, void 0) }), void 0));
};