Files
hipmi-mobile/screens/Collaboration/BoxPublishSection.tsx
Bagasbanuna02 6f4dd79568 Integrasi API: Admin Collaboration
Fix: Tampilan yang terintegrasi API
 - app/(application)/(user)/collaboration/[id]/edit.tsx
 - app/(application)/admin/collaboration/[id]/[status].tsx
 - app/(application)/admin/collaboration/[id]/group.tsx
 - app/(application)/admin/collaboration/[id]/reject-input.tsx
 - app/(application)/admin/collaboration/group.tsx
 - app/(application)/admin/collaboration/index.tsx
 - app/(application)/admin/collaboration/publish.tsx
 - app/(application)/admin/collaboration/reject.tsx
 - components/_ShareComponent/Admin/TableValue.tsx
 - screens/Collaboration/BoxPublishSection.tsx
 - service/api-admin/api-admin-collaboration.ts

### No Issue
2025-10-16 14:48:31 +08:00

47 lines
1.2 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?.Profile?.id}`}
name={data?.Author?.username || "Username"}
rightComponent={rightComponentAvatar}
avatar={data?.Author?.Profile?.imageId}
withBottomLine
/>
<StackCustom style={{paddingBlock: 10}}>
<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;