import {
  AvatarCustom,
  AvatarUsernameAndOtherComponent,
  BaseBox,
  Grid,
  StackCustom,
  TextCustom,
  ViewWrapper,
} from "@/components";

export default function Kontribusi() {
  return (
    <ViewWrapper hideFooter>
      {Array.from({ length: 10 }).map((_, index) => (
        <BaseBox key={index} href={`/event/${index}/contribution`}>
          <StackCustom>
            <AvatarUsernameAndOtherComponent
              avatarHref={`/profile/${index}`}
              rightComponent={
                <TextCustom truncate>
                  {new Date().toDateString().split(" ")[2] +
                    ", " +
                    new Date().toDateString().split(" ")[1] +
                    " " +
                    new Date().toDateString().split(" ")[3]}
                </TextCustom>
              }
            />

            <TextCustom bold align="center" size="xlarge">
              Judul Event Disini
            </TextCustom>

            <Grid>
              {Array.from({ length: 4 }).map((_, index2) => (
                <Grid.Col span={3} key={index2}>
                  <AvatarCustom size="sm" href={`/profile/${index2}`} />
                </Grid.Col>
              ))}
            </Grid>
          </StackCustom>
        </BaseBox>
      ))}
    </ViewWrapper>
  );
}
