import type { DocsEntry } from "../content/types";

interface DocsPortalProps {
  entries: DocsEntry[];
}

export function DocsPortal({ entries }: DocsPortalProps) {
  return (
    <div className="docs-portal">
      {entries.map((entry) => (
        <a key={entry.title} className="doc-card" href={entry.anchor}>
          <h3>{entry.title}</h3>
          <p>{entry.description}</p>
        </a>
      ))}
    </div>
  );
}
