import {MenuItem,TextField} from "@mui/material";import type {Gallery_Capture_Session} from "../protocol/gallery_types";
export function Capture_Sessions({sessions,selected_session_id,on_select}:{sessions:Gallery_Capture_Session[];selected_session_id:number|null;on_select:(id:number)=>void}) {return <TextField select size="small" fullWidth label="Capture Session" value={selected_session_id??""} onChange={event=>on_select(Number(event.target.value))}>{sessions.map(session=><MenuItem key={session.session_id} value={session.session_id}>Session #{session.session_id} · {session.captured_count}/{session.requested_count}</MenuItem>)}</TextField>;}
