@@ -12,8 +12,8 @@ import { getAllPosts, formatDate } from "../lib/lib";
12export default function Blog({ posts }) {
12export default function Blog({ posts }) {
13 const [showSearch, toggleSearch] = useState(false);
13 const [showSearch, toggleSearch] = useState(false);
15− <Container>
15+ <Container toggleSearch={() => toggleSearch((state) => !state)}>
16− {showSearch && <Search toggleSearch={() => toggleSearch(!showSearch)} />}
16+ {showSearch && <Search toggleSearch={() => toggleSearch(false)} />}
17 <SingleColumn>
17 <SingleColumn>
18 <Header toggleSearch={() => toggleSearch(true)} />
18 <Header toggleSearch={() => toggleSearch(true)} />
19 <section className="layout-wide">
19 <section className="layout-wide">