import {Chip,Stack} from "@mui/material";
export function Category_Filter({categories,active_category,on_change}:{categories:string[];active_category:string;on_change:(category:string)=>void}) {return <Stack direction="row" spacing={1} useFlexGap flexWrap="wrap">{categories.map(category=><Chip key={category} label={category} clickable color={category===active_category?"primary":"default"} variant={category===active_category?"filled":"outlined"} onClick={()=>on_change(category)}/>)}</Stack>;}
