|
2 | 2 |
|
3 | 3 | import { createElement } from 'react' |
4 | 4 | import { useParams } from 'next/navigation' |
5 | | -import { ArrowRight } from '@/components/emcn' |
| 5 | +import { AlertTriangle, ArrowRight } from '@/components/emcn' |
6 | 6 | import { cn } from '@/lib/core/utils/cn' |
7 | 7 | import { OAUTH_PROVIDERS } from '@/lib/oauth/oauth' |
8 | 8 |
|
@@ -464,36 +464,17 @@ function UsageUpgradeDisplay({ data }: { data: UsageUpgradeTagData }) { |
464 | 464 | const buttonLabel = data.action === 'upgrade_plan' ? 'Upgrade Plan' : 'Increase Limit' |
465 | 465 |
|
466 | 466 | return ( |
467 | | - <div className='animate-stream-fade-in rounded-xl border border-amber-300/40 bg-amber-50/50 px-4 py-3 dark:border-amber-500/20 dark:bg-amber-950/20'> |
468 | | - <div className='flex items-center gap-2'> |
469 | | - <svg |
470 | | - className='h-4 w-4 shrink-0 text-amber-600 dark:text-amber-400' |
471 | | - viewBox='0 0 16 16' |
472 | | - fill='none' |
473 | | - xmlns='http://www.w3.org/2000/svg' |
474 | | - > |
475 | | - <path |
476 | | - d='M8 1.5L1 14h14L8 1.5z' |
477 | | - stroke='currentColor' |
478 | | - strokeWidth='1.3' |
479 | | - strokeLinejoin='round' |
480 | | - /> |
481 | | - <path d='M8 6.5v3' stroke='currentColor' strokeWidth='1.3' strokeLinecap='round' /> |
482 | | - <circle cx='8' cy='11.5' r='0.75' fill='currentColor' /> |
483 | | - </svg> |
484 | | - <span className='font-[500] text-[14px] text-amber-800 leading-5 dark:text-amber-300'> |
485 | | - Usage Limit Reached |
486 | | - </span> |
487 | | - </div> |
488 | | - <p className='mt-1.5 text-[13px] text-amber-700/90 leading-[20px] dark:text-amber-400/80'> |
| 467 | + <div className='animate-stream-fade-in space-y-1'> |
| 468 | + <span className='font-base text-[13px] text-[var(--text-secondary)] italic leading-[20px]'> |
489 | 469 | {data.message} |
490 | | - </p> |
| 470 | + </span> |
491 | 471 | <a |
492 | 472 | href={settingsPath} |
493 | | - className='mt-2 inline-flex items-center gap-1 font-[500] text-[13px] text-amber-700 underline decoration-dashed underline-offset-2 transition-colors hover:text-amber-900 dark:text-amber-300 dark:hover:text-amber-200' |
| 473 | + className='flex items-center gap-[8px] rounded-lg border border-[var(--divider)] px-3 py-2.5 transition-colors hover:bg-[var(--surface-5)]' |
494 | 474 | > |
495 | | - {buttonLabel} |
496 | | - <ArrowRight className='h-3 w-3' /> |
| 475 | + <AlertTriangle className='h-[16px] w-[16px] shrink-0 text-[var(--text-icon)]' /> |
| 476 | + <span className='flex-1 font-base text-[14px] text-[var(--text-body)]'>{buttonLabel}</span> |
| 477 | + <ArrowRight className='h-[16px] w-[16px] shrink-0 text-[var(--text-icon)]' /> |
497 | 478 | </a> |
498 | 479 | </div> |
499 | 480 | ) |
|
0 commit comments