chore: remove Next.js dependencies and update UI components with standard React
This commit is contained in:
18
src/components/ui/CountUpNumber.tsx
Normal file
18
src/components/ui/CountUpNumber.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
'use client'
|
||||
|
||||
import CountUp from 'react-countup'
|
||||
import { SectionHeader } from '@/components/Texts'
|
||||
|
||||
interface CountUpNumberProps {
|
||||
end: number
|
||||
className?: string
|
||||
color?: 'light' | 'primary' | 'secondary'
|
||||
}
|
||||
|
||||
export function CountUpNumber({ end, className, color }: CountUpNumberProps) {
|
||||
return (
|
||||
<SectionHeader color={color} className={className}>
|
||||
<CountUp end={end} duration={2.75} separator="," />
|
||||
</SectionHeader>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user