The main server, and probably only repository in this org.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
533 B

import React from "react";
import useLights from "../../Hooks/light";
import Light from "../Light";
import Loading from "../Loading";
import {Card, CardBody, CardHeader} from "reactstrap";
function LightPage() {
const lights = useLights();
if (lights === null) {
return <Loading/>;
}
return (
<Card className="mt-3">
<CardHeader>
Tilgjengelige lys
</CardHeader>
<CardBody>
{lights.map(light => <Light {...light} />)}
</CardBody>
</Card>
);
}
export default LightPage;