"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = require("react"); var useFavicon = function (href) { react_1.useEffect(function () { var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); link.type = 'image/x-icon'; link.rel = 'shortcut icon'; link.href = href; document.getElementsByTagName('head')[0].appendChild(link); }, [href]); }; exports.default = useFavicon;