Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
15 lines
383 B
TypeScript
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
|