mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
24 lines
674 B
JavaScript
24 lines
674 B
JavaScript
import LayoutBase from './LayoutBase'
|
|
import StickyBar from './components/StickyBar'
|
|
import BlogPostListScroll from './components/BlogPostListScroll'
|
|
import { useGlobal } from '@/lib/global'
|
|
|
|
export const LayoutSearch = (props) => {
|
|
const { locale } = useGlobal()
|
|
const { posts } = props
|
|
|
|
return (
|
|
<LayoutBase {...props} >
|
|
<StickyBar>
|
|
<div className="p-4 dark:text-gray-200">
|
|
<i className="mr-1 fas fa-search" />{' '}
|
|
{posts?.length} {locale.COMMON.RESULT_OF_SEARCH}
|
|
</div>
|
|
</StickyBar>
|
|
<div className="md:mt-5">
|
|
<BlogPostListScroll {...props} showSummary={true}/>
|
|
</div>
|
|
</LayoutBase>
|
|
)
|
|
}
|