"use client"; import { ComponentGlobal_AvatarAndUsername } from "@/app_modules/_global/component"; import { Group, Stack, Text } from "@mantine/core"; import { useRouter } from "next/navigation"; import moment from "moment"; import "moment/locale/id"; export default function ComponentColab_AuthorNameOnHeader({ tglPublish, profile, }: { tglPublish?: Date; profile: any; }) { const router = useRouter(); return ( <> {tglPublish ? ( {moment(tglPublish).locale("id").format("ll")} ) : ( "" )} } /> {/* { if (profileId) { router.push(RouterProfile.katalogOLD + profileId); } else { ComponentGlobal_NotifikasiPeringatan("Id tidak ditemukan"); } }} > {authorName ? authorName : "Nama author"} {tglPublish ? ( {new Intl.DateTimeFormat("id-ID", { dateStyle: "medium" }).format(tglPublish)} ) : ( "" )} */} ); }