admin/components/ui/AppVersion.tsx
alisaza e1eaf5eff5 feat: initial ghabilee-admin backoffice app
Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js
app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
2026-09-05 13:12:59 +03:30

15 lines
383 B
TypeScript

import { APP_VERSION } from '@/config/app'
interface AppVersionProps {
className?: string
}
/** نمایش نسخه اپ از package.json (via NEXT_PUBLIC_APP_VERSION) */
const AppVersion = ({ className = '' }: AppVersionProps) => {
if (!APP_VERSION) return null
return <span className={`select-none ${className}`.trim()}>v{APP_VERSION}</span>
}
export default AppVersion