"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkTPVPCMRQcjs = require('./chunk-TPVPCMRQ.cjs');

// src/hooks/useDocumentTitle.tsx
var _react = require('react');
var useDocumentTitle = (defaultPrefix, title) => {
  _chunkTPVPCMRQcjs.useIsomorphicLayoutEffect.call(void 0, () => {
    window.document.title = `${defaultPrefix} - ${title}`;
  }, [title, defaultPrefix]);
  _react.useEffect.call(void 0, () => {
    return () => {
      window.document.title = defaultPrefix;
    };
  }, [defaultPrefix]);
};



exports.useDocumentTitle = useDocumentTitle;
