Last active
May 15, 2026 00:59
-
-
Save codigoconjuan/8b6c0ce83c8c4cc43cdbc3845fde4f65 to your computer and use it in GitHub Desktop.
Type de Subscripciones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const statusColors = { | |
| green: 'bg-green-50 text-green-600 border-green-200', | |
| yellow: 'bg-yellow-50 text-yellow-600 border-yellow-200', | |
| orange: 'bg-orange-50 text-orange-600 border-orange-200', | |
| red: 'bg-red-50 text-red-600 border-red-200', | |
| gray: 'bg-gray-50 text-gray-700 border-gray-200', | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type StatusLabel = { | |
| text: string; | |
| description: string; | |
| date: string | null; | |
| color: 'green' | 'yellow' | 'orange' | 'red' | 'gray'; | |
| } | |
| export type Subscription = { | |
| plan: 'monthly' | 'yearly'; | |
| status: string; | |
| on_grace_period: boolean; | |
| canceled: boolean; | |
| past_due: boolean; | |
| ends_at: string | null; | |
| next_billing_date: string | null; | |
| price: number; | |
| status_label: StatusLabel; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default function SubscriptionStatus() { | |
| return ( | |
| <div className="rounded-xl border border-slate-300 p-6 mb-6"> | |
| <div className="flex justify-between items-start mb-4"> | |
| <div> | |
| <span className="text-sm text-gray-500 uppercase tracking-wide"> | |
| Plan actual | |
| </span> | |
| <h2 className="text-2xl font-bold flex items-center gap-2 mt-1"> | |
| PRO | |
| </h2> | |
| </div> | |
| <div className="text-right"> | |
| <div className="text-3xl font-black"> | |
| <span className="text-base font-normal text-gray-500"> | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| <div className="border-t border-slate-300 pt-4 space-y-2 text-sm"> | |
| <div className={`rounded-lg border p-4 mb-4`}> | |
| <div className="font-bold text-xl"></div> | |
| </div> | |
| </div> | |
| </div> | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment