import { AvatarComp, BoxWithHeaderSection, ClickableCustom, Grid, Spacing, TextCustom } from "@/components"; import { MainColor } from "@/constants/color-palet"; import { ICON_SIZE_SMALL } from "@/constants/constans-value"; import { GStyles } from "@/styles/global-styles"; import { formatChatTime } from "@/utils/formatChatTime"; import { Entypo } from "@expo/vector-icons"; import { View } from "react-native"; export default function Forum_CommentarBoxSection({ data, onSetData, }: { data: any; onSetData: ({ setCommentId, setOpenDrawer, setCommentAuthorId, }: { setCommentId: string; setOpenDrawer: boolean; setCommentAuthorId: string; }) => void; }) { return ( <> {data?.Author?.username} { onSetData({ setCommentId: data?.id, setOpenDrawer: true, setCommentAuthorId: data?.Author?.id, }); }} style={{ alignItems: "flex-end", }} > {data.komentar} {formatChatTime(data?.createdAt)} ); }