import { Skeleton } from '@/components/ui/skeleton' import { useFetchEvent } from '@/hooks' import { cn } from '@/lib/utils' import { useTranslation } from 'react-i18next' import ClientSelect from '../ClientSelect' import MainNoteCard from '../NoteCard/MainNoteCard' export function EmbeddedNote({ noteId, className }: { noteId: string; className?: string }) { const { event, isFetching } = useFetchEvent(noteId) if (isFetching) { return } if (!event) { return } return ( ) } function EmbeddedNoteSkeleton({ className }: { className?: string }) { return (
e.stopPropagation()} >
) } function EmbeddedNoteNotFound({ noteId, className }: { noteId: string; className?: string }) { const { t } = useTranslation() return (
{t('Sorry! The note cannot be found 😔')}
) }