import React from "react"; import { Link } from "react-router-dom"; import ElectionStatus from "./ElectionStatus"; import User from "../User"; import Loading from "../Loading"; const Member = (props: { id: number; findHandle: (id: number) => string }) => { const handle = props.findHandle(props.id); return (
); }; const Council = (props: { findHandle: (id: number) => string; council: number[]; councilElection?: any; block: number; termEndsAt: number; }) => { const { findHandle, council, block, councilElection, termEndsAt } = props; const half = Math.floor(council.length / 2); const show = council.length ? true : false; return (

Council

{(show && (
{council.slice(0, half).map((id) => ( ))}
{council.slice(half).map((id) => ( ))}
)) || }
Reports
); }; export default Council;