'use strict';
import { useContext } from 'react';
import { createError } from '../../../fd-toolbox/errors/errors.js';
import { metaErrorMessages } from '../constants/meta-error-messages-constants.js';
import { TitleContext } from './title-context.js';

var __defProp=Object['defineProperty'],__name=(_0x4cbe09,_0x317658)=>__defProp(_0x4cbe09,'name',{'value':_0x317658,'configurable':!![]});function useTitle(){const _0x3574a8=useContext(TitleContext);if(!_0x3574a8)throw createError(metaErrorMessages['resourceNameThemeProviderError']);return _0x3574a8;}__name(useTitle,'useTitle');

export { useTitle };
