+
+
+
+ setName(e.target.value)}
+ className="w-full px-3 py-2 border rounded-md dark:bg-gray-700 dark:border-gray-600"
+ />
+
+
+
+
+
+
+
+
+
+ Created {new Date(genlocke.createdAt).toLocaleDateString()}
+
+
+
+
Legs ({genlocke.legs.length})
+
+
+
+ {addingLeg && (
+
+
+
+
+
+ )}
+
+ {genlocke.legs.length === 0 ? (
+
+ No legs yet. Add one to get started.
+
+ ) : (
+
+
+
+
+
+ |
+ Order
+ |
+
+ Game
+ |
+
+ Run
+ |
+
+ Status
+ |
+
+ Enc.
+ |
+
+ Deaths
+ |
+
+ Actions
+ |
+
+
+
+ {genlocke.legs.map((leg) => (
+
+ | {leg.legOrder} |
+ {leg.game.name} |
+
+ {leg.runId ? (
+
+ Run #{leg.runId}
+
+ ) : (
+ —
+ )}
+ |
+
+ {leg.runStatus ? (
+
+ {leg.runStatus}
+
+ ) : (
+ —
+ )}
+ |
+ {leg.encounterCount} |
+ {leg.deathCount} |
+
+
+ |
+
+ ))}
+
+
+
+
+ )}
+