Spaces:
Paused
Paused
File size: 720 Bytes
0b9dc2e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import { MessagesSquare } from 'lucide-react';
import {
Empty,
EmptyDescription,
EmptyHeader,
EmptyMedia,
EmptyTitle,
} from '@/components/ui/empty';
import { useTranslation } from '@/i18n/useI18n';
/**
* Empty state component shown when there are no messages.
* @returns An empty state element with icon and description.
*/
export function EmptyMessage() {
const { t } = useTranslation();
return (
<Empty className="size-full">
<EmptyHeader>
<EmptyMedia variant="icon">
<MessagesSquare />
</EmptyMedia>
<EmptyTitle>{t('chat.noMessages')}</EmptyTitle>
<EmptyDescription>{t('chat.noMessagesDesc')}</EmptyDescription>
</EmptyHeader>
</Empty>
);
}
|