import type { TAuthor } from '~/apis/admin/get-news' import { ProfileIcon } from '~/components/icons/profile' import { formatDate } from '~/utils/formatter' type TDetailNewsAuthor = { author?: TAuthor live_at?: string text?: string } export const NewsAuthor = ({ author, live_at, text }: TDetailNewsAuthor) => { return (
{author?.profile_picture ? ( {author?.name} ) : ( )}

{author?.name}

{live_at && `${formatDate(live_at)}`} ยท {text}

) }