import LayoutBase from './LayoutBase' import StickyBar from './components/StickyBar' import BlogPostListScroll from './components/BlogPostListScroll' import { useGlobal } from '@/lib/global' import { useEffect } from 'react' export const LayoutSearch = (props) => { const { locale } = useGlobal() const { posts, keyword } = props useEffect(() => { setTimeout(() => { const container = document.getElementById('container') if (container && container.innerHTML) { const re = new RegExp(`${keyword}`, 'gim') container.innerHTML = container.innerHTML.replace(re, `${keyword}`) } }, 100) }) return (
{' '} {posts?.length} {locale.COMMON.RESULT_OF_SEARCH}
) }