Add: - (user)/collaboration/[id]/select-of-participants Fix: - Integrasi ke api di bagian beranda , partisipan dan group ### No Issue
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import {
|
|
AvatarUsernameAndOtherComponent,
|
|
BoxWithHeaderSection,
|
|
StackCustom,
|
|
TextCustom
|
|
} from "@/components";
|
|
import { Href } from "expo-router";
|
|
|
|
function Collaboration_BoxPublishSection({
|
|
href,
|
|
data,
|
|
rightComponentAvatar,
|
|
}: {
|
|
href: Href;
|
|
data: any;
|
|
rightComponentAvatar?: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<>
|
|
<BoxWithHeaderSection href={href}>
|
|
<StackCustom gap={0}>
|
|
<AvatarUsernameAndOtherComponent
|
|
avatarHref={`/profile/${data?.Author?.id}`}
|
|
name={data?.Author?.username || "Username"}
|
|
rightComponent={rightComponentAvatar}
|
|
avatar={data?.Author?.Profile?.imageId}
|
|
withBottomLine
|
|
/>
|
|
|
|
<StackCustom>
|
|
<TextCustom truncate size="large" bold align="center">
|
|
{data?.title || "-"}
|
|
</TextCustom>
|
|
<TextCustom truncate={2}>{data?.purpose || "-"}</TextCustom>
|
|
{/* <TextCustom bold size="small" >
|
|
2 Partisipan
|
|
</TextCustom> */}
|
|
</StackCustom>
|
|
</StackCustom>
|
|
</BoxWithHeaderSection>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default Collaboration_BoxPublishSection;
|