| | |
| | | <polyline points="6 9 12 15 18 9"></polyline> |
| | | </svg> |
| | | </button> |
| | | <div class={fileData.collapseToc ? "collapsed toc-content" : "toc-content"}> |
| | | <OverflowList> |
| | | {fileData.toc.map((tocEntry) => ( |
| | | <li key={tocEntry.slug} class={`depth-${tocEntry.depth}`}> |
| | | <a href={`#${tocEntry.slug}`} data-for={tocEntry.slug}> |
| | | {tocEntry.text} |
| | | </a> |
| | | </li> |
| | | ))} |
| | | </OverflowList> |
| | | </div> |
| | | <OverflowList class={fileData.collapseToc ? "collapsed toc-content" : "toc-content"}> |
| | | {fileData.toc.map((tocEntry) => ( |
| | | <li key={tocEntry.slug} class={`depth-${tocEntry.depth}`}> |
| | | <a href={`#${tocEntry.slug}`} data-for={tocEntry.slug}> |
| | | {tocEntry.text} |
| | | </a> |
| | | </li> |
| | | ))} |
| | | </OverflowList> |
| | | </div> |
| | | ) |
| | | } |