diff --git a/packages/website/src/components/DocContainer.tsx b/packages/website/src/components/DocContainer.tsx
index 64493199c825..cb18f5892d01 100644
--- a/packages/website/src/components/DocContainer.tsx
+++ b/packages/website/src/components/DocContainer.tsx
@@ -1,7 +1,15 @@
import { Group, Stack, Title, Text, Box, MediaQuery, Aside, ScrollArea } from '@mantine/core';
import { useMediaQuery } from '@mantine/hooks';
import { Fragment, ReactNode } from 'react';
-import { VscListSelection, VscSymbolParameter } from 'react-icons/vsc';
+import {
+ VscSymbolClass,
+ VscSymbolMethod,
+ VscSymbolEnum,
+ VscSymbolInterface,
+ VscSymbolVariable,
+ VscListSelection,
+ VscSymbolParameter,
+} from 'react-icons/vsc';
import { PrismAsyncLight as SyntaxHighlighter } from 'react-syntax-highlighter';
import { vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/prism';
import { HyperlinkedText } from './HyperlinkedText';
@@ -12,7 +20,6 @@ import { TSDoc } from './tsdoc/TSDoc';
import type { ApiClassJSON, ApiInterfaceJSON, ApiItemJSON } from '~/DocModel/ApiNodeJSONEncoder';
import type { TypeParameterData } from '~/DocModel/TypeParameterMixin';
import type { AnyDocNodeJSON } from '~/DocModel/comment/CommentNode';
-import { generateIcon } from '~/util/icon';
import type { TokenDocumentation } from '~/util/parse.server';
export interface DocContainerProps {
@@ -29,6 +36,19 @@ export interface DocContainerProps {
properties?: ApiClassJSON['properties'] | ApiInterfaceJSON['properties'] | null;
}
+function generateIcon(kind: string) {
+ const icons = {
+ Class: ,
+ Method: ,
+ Function: ,
+ Enum: ,
+ Interface: ,
+ TypeAlias: ,
+ };
+
+ return icons[kind as keyof typeof icons];
+}
+
export function DocContainer({
name,
kind,
@@ -111,11 +131,14 @@ export function DocContainer({
{(kind === 'Class' || kind === 'Interface') && (methods?.length || properties?.length) ? (
-
+