import Row from "@moduletrace/twui/layout/Row"; import _ from "lodash"; import { AppData } from "@/src/data/app-data"; import type useAllPeopleListInit from "../(hooks)/use-all-people-list-init"; import AllPeopleListSearch from "./all-people-list-search"; import AllPeopleListUsersTypeSelect from "./all-people-list-users-type-select"; export default function AllPeopleListTitleSection( props: ReturnType, ) { const { users_type, people, page, count } = props; const limit = AppData["DefaultQueryLimit"]; const range_start = people?.length ? (page - 1) * limit + 1 : 0; const range_end = people?.length ? range_start + people.length - 1 : 0; return ( {users_type ? null : ( )} {typeof count === "number" && count > 0 ? (

Showing {range_start}-{range_end} of {count} users

) : ( No Results )}
); }