import { Skeleton } from '@/components/ui/skeleton' import { useFetchEvent } from '@/hooks' import { cn } from '@/lib/utils' import { useTranslation } from 'react-i18next' import ContentPreview from '../ContentPreview' import UserAvatar from '../UserAvatar' export default function ParentNotePreview({ eventId, className, onClick }: { eventId: string className?: string onClick?: React.MouseEventHandler | undefined }) { const { t } = useTranslation() const { event, isFetching } = useFetchEvent(eventId) if (isFetching) { return (
{t('reply to')}
) } return (
{t('reply to')}
{event && }
) }