# PortalTableOfContents

**Kind:** Component

**Source:** [`atloria-monorepo/apps/web/src/app/p/[slugId]/[audienceSlug]/[documentSlug]/DocumentPageClient.tsx`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/app/p/[slugId]/[audienceSlug]/[documentSlug]/DocumentPageClient.tsx#L177)

Portal-Compatible ToC Component Uses same hooks as TableOfContents but adapted for portal rendering

## Props

| Name | Type | Required | Default |
|---|---|---|---|
| `entries` | `TocEntry[]` | ✓ | - |
| `title` | `string` | ✓ | - |

## Diagram

```mermaid
graph TD
    component_PortalTableOfContents_3a1c8ff8["PortalTableOfContents"]
    class component_PortalTableOfContents_3a1c8ff8 rootComponent
```

## Relationships

- RENDERS → `ChevronDown`
- RENDERS → `ChevronRight`
- USES_HOOK → `useLanguageContext`
- USES_HOOK → `useMemo`
- USES_HOOK → `useState`
- USES_HOOK → `useEffect`
- USES_HOOK → `useActiveSection`
- USES_HOOK → `useCallback`

## Referenced By

- `PublicDocumentPage` (RENDERS)
