"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useShortAddress = void 0;
var react_1 = require("react");
var utils_1 = require("../utils");
function useShortAddress(address, chars) {
    return (0, react_1.useMemo)(function () {
        if (!address)
            return address;
        return (0, utils_1.shortenAddress)(address, chars);
    }, [address, chars]);
}
exports.useShortAddress = useShortAddress;
//# sourceMappingURL=useShortAddress.js.map