// @flow strict import React from 'react'; import { Link } from 'gatsby'; import kebabCase from 'lodash/kebabCase'; import Sidebar from '../components/Sidebar'; import Layout from '../components/Layout'; import Page from '../components/Page'; import { useSiteMetadata, useCategoriesList } from '../hooks'; const CategoriesListTemplate = () => { const { title, subtitle } = useSiteMetadata(); const categories = useCategoriesList(); return (
    {categories.map((category) => (
  • {category.fieldValue} ({category.totalCount})
  • ))}
); }; export default CategoriesListTemplate;