mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
16 lines
465 B
TypeScript
16 lines
465 B
TypeScript
import { selectFrontLines } from "../../api/frontLinesSlice";
|
|
import { useAppSelector } from "../../app/hooks";
|
|
import FrontLine from "../frontline";
|
|
import { LayerGroup } from "react-leaflet";
|
|
|
|
export default function FrontLinesLayer() {
|
|
const fronts = useAppSelector(selectFrontLines).fronts;
|
|
return (
|
|
<LayerGroup>
|
|
{Object.values(fronts).map((front, idx) => {
|
|
return <FrontLine key={idx} front={front} />;
|
|
})}
|
|
</LayerGroup>
|
|
);
|
|
}
|