ST
Size: a a a
ST
MK
А
ST
AA
MK
AA
MK
AA
VK
MK
AA
y
Т
B
MK
AA
seat = useSelector(state => selectSeatById(state, props.id));
selectSeatById = createCachedSelector(selectSeats,
(_, id) => id,
selectSeatGeometry,
(seats, id, geometry) => {
const seat = seats.byId[id];
return ({
available: isAvailable(seats.byId[id], seats.byId),
isCompanion: seats.byId[id].type === "companion",
...geometry,
...seat
})
})((seats, id) => id);
B