Dev Helpers
← Back

Closed issue archive

Place this file at app/issues/page.tsx in an App Router project.

Open this example in the interactive library

Source code

// app/issues/page.tsx

export default function ClosedIssueArchive() {
  const issues = [
    { id: 12, title: "Header spacing", owner: "Kim", severity: 1, open: true },
    { id: 14, title: "Invoice rounding", owner: "Sam", severity: 3, open: true },
    { id: 21, title: "Alt text", owner: "Kim", severity: 2, open: false },
  ];
  return (
    <main>
      <h1>Resolved issues</h1>
      {issues
        .filter((i) => !i.open)
        .map((i) => (
          <details key={i.id}>
            <summary>{i.title}</summary>Closed by {i.owner}
          </details>
        ))}
    </main>
  );
}