import type { ReactNode } from "react";
// One shared list style for every former -joined list in the live file.
export function DataList({ items, empty }: { items: ReactNode[]; empty?: string }) {
if (!items.length) return
{empty || "(暂无)"}
;
return
{items.map((it, i) =>
{it}
)}
;
}
export function DataListRaw({ children }: { children: ReactNode }) {
return
{children}
;
}
export function StatusPill({ status }: { status?: string }) {
return {status || ""};
}