import React from "react" import { Box, BoxProps, chakra, PropsOf, useColorModeValue, VStack } from "@chakra-ui/react" import UserCard from './user-card' import { User } from "src/types/user" import userCustomTheme from "theme/user-custom" type Props = PropsOf & { users: User[] highlight?: string } export const Users = (props: Props) => { const { users,highlight, ...rest } = props const postBorderColor = useColorModeValue(userCustomTheme.borderColor.light, userCustomTheme.borderColor.dark) const showBorder = i => { if (i < users.length - 1) { return true } } return ( {users.map((u,i) => )} ) } export default Users