123
This commit is contained in:
@ -5,7 +5,7 @@ import { Button } from '@/components/ui/button';
|
|||||||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card';
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card';
|
||||||
import { Progress } from '@/components/ui/progress';
|
import { Progress } from '@/components/ui/progress';
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { SUBSCRIPTION_PLANS, formatPlanPrice } from '@coursecraft/shared';
|
import { SUBSCRIPTION_PLANS, formatPlanPrice, type SubscriptionTierType } from '@coursecraft/shared';
|
||||||
|
|
||||||
const locale = 'ru';
|
const locale = 'ru';
|
||||||
|
|
||||||
@ -16,11 +16,16 @@ const plans = SUBSCRIPTION_PLANS.map((plan) => ({
|
|||||||
features: plan.featuresRu,
|
features: plan.featuresRu,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const currentPlan = {
|
const currentPlan: {
|
||||||
tier: 'FREE' as const,
|
tier: SubscriptionTierType;
|
||||||
|
coursesUsed: number;
|
||||||
|
coursesLimit: number;
|
||||||
|
renewalDate: string | null;
|
||||||
|
} = {
|
||||||
|
tier: 'FREE',
|
||||||
coursesUsed: 1,
|
coursesUsed: 1,
|
||||||
coursesLimit: 2,
|
coursesLimit: 2,
|
||||||
renewalDate: null as string | null,
|
renewalDate: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function BillingPage() {
|
export default function BillingPage() {
|
||||||
|
|||||||
Reference in New Issue
Block a user