import React from "react"; import { Link } from "gatsby"; import { Layout } from "@/components/Layout"; import { Page } from "@/components/Page"; import { Sidebar } from "@/components/Sidebar"; import { useCategoriesList, useSiteMetadata } from "@/hooks"; import { toKebabCase } from "@/utils"; const CategoriesTemplate: React.FC = () => { const { title, subtitle } = useSiteMetadata(); const categories = useCategoriesList(); return (
    {categories.map(category => (
  • {category.fieldValue} ({category.totalCount})
  • ))}
); }; export default CategoriesTemplate;