Raid Instance Creator working

This commit is contained in:
2025-03-15 12:20:05 -04:00
parent cff5e098b8
commit 56236fd2ac
32 changed files with 1524 additions and 20 deletions

View File

@@ -0,0 +1,36 @@
import { useRaidInstanceContext } from "@/providers/RaidInstanceLayoutProvider";
export default function RaidInstanceCreatorTableHeader({
onClickHeaderCell
}:{
onClickHeaderCell: (slot: number) => void;
}){
const { selectedClassGroups } = useRaidInstanceContext();
return (
<thead>
<tr
id="instanceTableHead"
>
{
selectedClassGroups.map((classGroup, index) => (
<th
key={index}
className="px-4 py-2 border-2 cursor-pointer"
onClick={() => onClickHeaderCell(index)}
>
{classGroup?.classGroupName ?? "Any"}
</th>
))
}
<th
className="px-4 py-2"
>
&nbsp;
</th>
</tr>
</thead>
);
}