import React from 'react'; import { getSortedPostsData } from '@/lib/markdown'; import { PostMetadata } from '@/types'; import { generateMetadata as createMetadata } from '@/components/Metadata'; import type { Metadata } from 'next'; import SearchClient from './SearchClient'; export async function generateMetadata(): Promise { return createMetadata({ title: 'Search Posts', description: 'Search through all posts on Confessions of Grace by title, content, or tags.', url: 'https://confessionsofgrace.com/search', type: 'website' }); } async function getAllPosts(): Promise { return getSortedPostsData(); } export default async function SearchPage() { const allPosts = await getAllPosts(); return (

Search Results

); }