rofactored edit and create pages

This commit is contained in:
@jcarymuhammedow
2026-05-21 19:11:36 +05:00
parent 2f13d424e1
commit 4adc153503
79 changed files with 1663 additions and 2333 deletions

View File

@@ -0,0 +1,15 @@
import { useTranslation } from 'react-i18next'
interface PageErrorProps {
message?: string
}
export function PageError({ message }: PageErrorProps) {
const { t } = useTranslation()
const text = message ?? t('common.notFound', 'Maglumat ýüklenilmedi. Sahypany täzeleläň.')
return (
<div className="flex items-center justify-center min-h-[400px]">
<p className="text-sm text-destructive">{text}</p>
</div>
)
}