'use client'; import Balancer from 'react-wrap-balancer'; import { useThemeStore } from '@/stores/theme-store'; import { PostTags } from '@/components/post-tags'; import { formatDateTime } from '@/lib/datetime'; import { cn } from '@/lib/utils'; type PostIntroProps = { title: string; date: string; tags: string[]; }; export function PostIntro({ title, date, tags }: PostIntroProps) { const fontSize = useThemeStore((state) => state.fontSize); const publishedDate = formatDateTime(date); return (

{title}

Published
{' '} ยท {publishedDate.asRelativeTimeString}
); }