File "use-page-title.js"
Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/elementor/app/assets/js/hooks/use-page-title.js
File size: 259 bytes
MIME-type: text/x-java
Charset: utf-8
import { useEffect } from 'react';
export default function usePageTitle( { title, prefix } ) {
useEffect( () => {
if ( ! prefix ) {
prefix = __( 'Elementor', 'elementor' );
}
document.title = `${ prefix } | ${ title }`;
}, [ title, prefix ] );
}