fix nextjs linting hints and improve adapter to support config as function

This commit is contained in:
dswbx
2025-03-14 07:55:05 +01:00
parent 4f01004262
commit 1ea22248b4
7 changed files with 69 additions and 58 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { ReactNode } from "react";
export const List = ({ items = [] }: { items: ReactNode[] }) => (
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
{items.map((item, i) => (
<li key={i} className={i < items.length - 1 ? "mb-2" : ""}>
{item}
</li>
))}
</ol>
);