share route itens
This commit is contained in:
61
packages/ui/src/routes/orders/data.tsx
Normal file
61
packages/ui/src/routes/orders/data.tsx
Normal file
@@ -0,0 +1,61 @@
|
||||
import {
|
||||
CheckCircleIcon,
|
||||
ClockAlertIcon,
|
||||
RotateCcwIcon,
|
||||
CircleXIcon,
|
||||
ClockIcon,
|
||||
BanIcon,
|
||||
type LucideIcon
|
||||
} from 'lucide-react'
|
||||
|
||||
export const statuses: Record<
|
||||
string,
|
||||
{ icon: LucideIcon; color?: string; label: string }
|
||||
> = {
|
||||
PENDING: {
|
||||
icon: ClockIcon,
|
||||
label: 'Pendente',
|
||||
color: 'text-blue-400 [&_svg]:text-blue-500'
|
||||
},
|
||||
PAID: {
|
||||
icon: CheckCircleIcon,
|
||||
color: 'text-green-400 [&_svg]:text-green-500',
|
||||
label: 'Pago'
|
||||
},
|
||||
REFUNDED: {
|
||||
icon: RotateCcwIcon,
|
||||
color: 'text-orange-400 [&_svg]:text-orange-500',
|
||||
label: 'Estornado'
|
||||
},
|
||||
EXPIRED: {
|
||||
icon: ClockAlertIcon,
|
||||
color: 'text-orange-400 [&_svg]:text-orange-500',
|
||||
label: 'Expirado'
|
||||
},
|
||||
CANCELED: {
|
||||
icon: CircleXIcon,
|
||||
color: 'text-red-400 [&_svg]:text-red-500',
|
||||
label: 'Cancelado'
|
||||
},
|
||||
DECLINED: {
|
||||
icon: BanIcon,
|
||||
color: 'text-red-400 [&_svg]:text-red-500',
|
||||
label: 'Negado'
|
||||
}
|
||||
}
|
||||
|
||||
export const labels: Record<string, string> = {
|
||||
PENDING: 'Pendente',
|
||||
PAID: 'Pago',
|
||||
DECLINED: 'Negado',
|
||||
EXPIRED: 'Expirado',
|
||||
REFUNDED: 'Estornado',
|
||||
CANCELED: 'Cancelado'
|
||||
}
|
||||
|
||||
export const methods: Record<string, string> = {
|
||||
BANK_SLIP: 'Boleto bancário',
|
||||
MANUAL: 'Depósito bancário',
|
||||
CREDIT_CARD: 'Cartão de crédito',
|
||||
PIX: 'Pix'
|
||||
}
|
||||
Reference in New Issue
Block a user