mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
19 lines
698 B
React
19 lines
698 B
React
// Rover Spectator Card
|
|
// Purpose: Defines the Rover Spectator Card module and the local helpers/components used in this file.
|
|
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
|
|
import SpectateVideo from '../../../components/SpectateVideo/index.jsx';
|
|
|
|
export default function RoverSpectatorCard({ rover }) {
|
|
return (
|
|
<article className="min-h-[16rem] rounded bg-zinc-900 p-0 sm:min-h-[18rem]">
|
|
<div className="min-h-0 overflow-hidden rounded bg-black/20">
|
|
<SpectateVideo
|
|
roverId={rover.id}
|
|
label={rover.name}
|
|
needsHelp={Boolean(rover.needsHelp)}
|
|
/>
|
|
</div>
|
|
</article>
|
|
);
|
|
}
|