♻️ refactor(empty): Content

This commit is contained in:
web@ppanel
2024-12-03 14:34:36 +07:00
parent d5f5add61a
commit aa4c667ed9
11 changed files with 50 additions and 27 deletions
+18
View File
@@ -0,0 +1,18 @@
'use client';
import { default as _Empty } from '@repo/ui/empty';
import { useTranslations } from 'next-intl';
import { useEffect, useState } from 'react';
export function Empty() {
const t = useTranslations('common');
const [description, setDescription] = useState('');
useEffect(() => {
const random = Math.floor(Math.random() * 10);
setDescription(t(`empty.${random}`));
}, []);
return <_Empty description={description} />;
}