Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
"use client";
import { Button } from "@rallly/ui/button";
import { showPayWall } from "@/features/billing/client";
import { SpaceTierLabel } from "@/features/space/components/space-tier";
import { Trans } from "@/i18n/client";
import {
PlanCard,
PlanCardActions,
PlanCardContent,
PlanCardDescription,
PlanCardHeader,
PlanCardTitle,
} from "./plan-card";
export function HobbyPlanCard({ className }: { className?: string }) {
return (
<PlanCard className={className}>
<PlanCardHeader>
<PlanCardContent>
<PlanCardTitle>
<SpaceTierLabel tier="hobby" />
</PlanCardTitle>
<PlanCardDescription>
<Trans i18nKey="priceFree" defaults="Free" />
</PlanCardDescription>
</PlanCardContent>
<PlanCardActions>
<Button
variant="primary"
onClick={() => {
showPayWall({ from: "billing-settings" });
}}
>
<Trans i18nKey="upgrade" defaults="Upgrade" />
</Button>
</PlanCardActions>
</PlanCardHeader>
</PlanCard>
);
}