import {Tab,Tabs} from "@mui/material";import type {Gallery_Frame_Mode} from "../protocol/gallery_types";
export function Frame_Mode_Tabs({frame_modes,active_mode,on_change}:{frame_modes:Gallery_Frame_Mode[];active_mode:string;on_change:(id:string)=>void}) {return <Tabs value={active_mode} onChange={(_,value:string)=>on_change(value)} variant="scrollable" scrollButtons="auto">{frame_modes.map(mode=><Tab key={mode.id} value={mode.id} label={`${mode.title} · ${mode.strategy}`}/>)}</Tabs>;}
