Initial commit - cleaned for CV

This commit is contained in:
Renato97
2026-03-31 01:23:33 -03:00
commit 9c11f23af0
142 changed files with 13690 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
'use client'
import { Info, AlertTriangle, AlertCircle, LucideIcon } from 'lucide-react'
import { Alert } from '@/lib/types'
import { cn } from '@/lib/utils'
interface AlertIconProps {
type: Alert['type']
className?: string
}
const iconMap: Record<Alert['type'], LucideIcon> = {
PAYMENT_DUE: AlertCircle,
BUDGET_WARNING: AlertTriangle,
CARD_CLOSING: Info,
CARD_DUE: AlertCircle,
SAVINGS_GOAL: Info,
UNUSUAL_SPENDING: AlertTriangle,
}
export function AlertIcon({ type, className }: AlertIconProps) {
const Icon = iconMap[type]
return <Icon className={cn('h-5 w-5', className)} />
}