import { CollectionIcon } from "@/components/collection-icon" import { getGuideCollections } from "@/lib/guide" import { Badge, Box, Card, Container, Flex, HStack, Heading, Link, SimpleGrid, Skeleton, Square, Stack, Text, VStack, } from "@chakra-ui/react" import { Metadata } from "next" import NextLink from "next/link" import { Suspense } from "react" import { LuChevronRight } from "react-icons/lu" import { GuideSearchInput } from "./search-input" export const metadata: Metadata = { title: "Guides", description: "Get answers to common questions about Chakra UI v3.0", openGraph: { images: `/og?title=Guides`, }, } export default function GuidePage() { const collections = getGuideCollections().sort( (a, b) => b.guides.length - a.guides.length, ) return ( How can we help? Find answers to common questions related to Chakra UI v3.0 }> {collections.map((collection) => ( {collection.title} {collection.guides.length} articles {collection.description} {collection.guides.map((guide, index) => ( {guide.title} ))} ))} ) }