import { ExpandableWidget, OrderedList } from '@components/WidgetParts'; import { Heading } from '@ts/types/app'; import useHeadingsTree from '@utils/hooks/useHeadingsTree'; import { useIntl } from 'react-intl'; const ToC = () => { const intl = useIntl(); const headingsTree = useHeadingsTree('article'); const title = intl.formatMessage({ defaultMessage: 'Table of contents', description: 'ToC: widget title', }); const getItems = (headings: Heading[]) => { return headings.map((heading) => { return (
  • {heading.title} {heading.children.length > 0 && ( )}
  • ); }); }; return ( ); }; export default ToC; 681997ef613d982bac14'/> The frontend of my personal website.Armand Philippot
    aboutsummaryrefslogtreecommitdiffstats
    path: root/public/prism/prism-tsx.min.js
    blob: 57bf2d4b125b7fe06a42d59213f6fcac0297fe72 (plain)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12