export const SKELETON_WIDTHS: Record = { crn: "w-10", course_code: "w-20", title: "w-40", instructor: "w-20", time: "w-20", location: "w-20", seats: "w-14 ml-auto", }; export function buildSkeletonHtml(colIds: string[], rowCount: number): string { const cells = colIds .map((id) => { const w = SKELETON_WIDTHS[id] ?? "w-20"; return `
`; }) .join(""); const row = `${cells}`; return row.repeat(rowCount); } export function buildCardSkeletonHtml(count: number): string { const card = `
`; return card.repeat(count); }