Modals and API calls working for admin tab

This commit is contained in:
2025-03-01 23:32:41 -05:00
parent d68e8864a0
commit 843970e229
34 changed files with 1150 additions and 131 deletions

View File

@@ -0,0 +1,30 @@
import clsx from "clsx";
export default function TableHead({
headElements
}:{
headElements: React.ReactNode[];
}){
return (
<thead>
<tr>
{
headElements.map((element, index) => (
<th
key={index}
className={clsx(
{
"pl-2": index === 0,
"pr-2": index === headElements.length - 1
}
)}
>
{element}
</th>
))
}
</tr>
</thead>
);
}