mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 11:40:28 -05:00
19 lines
476 B
TypeScript
19 lines
476 B
TypeScript
'use client';
|
|
|
|
import { default as _Empty } from '@workspace/ui/custom-components/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}`));
|
|
}, [t]);
|
|
|
|
return <_Empty description={description} />;
|
|
}
|