mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-21 06:34:30 +01:00
fix responsive UI
This commit is contained in:
16
components/FormattedNumber.tsx
Normal file
16
components/FormattedNumber.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { formatNumber } from '@/lib/utils/formatNumber'
|
||||
import { Settings } from '@/lib/types'
|
||||
|
||||
interface FormattedNumberProps {
|
||||
amount: number
|
||||
settings: Settings
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function FormattedNumber({ amount, settings, className }: FormattedNumberProps) {
|
||||
return (
|
||||
<span className={`break-all ${className || ''}`}>
|
||||
{formatNumber({ amount, settings })}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user