import { getHeadings } from 'lib/utils'; import Anchor from 'components/mdx/Anchor'; import styles from './PostTOC.module.css'; import classNames from 'classnames'; import { useCallback, useState } from 'react'; import { FiChevronDown } from 'react-icons/fi'; interface Props { headings: ReturnType; } const PostTOC = ({ headings }: Props) => { const [show, setShow] = useState(false); const handleClick = useCallback(() => setShow((show) => !show), []); return ( <>

What's inside?

); }; export default PostTOC;