"use client"; import { useParams, usePathname } from "next/navigation"; import { DollarSign, Receipt, CreditCard, TrendingUp, Plus, Calendar, } from "lucide-react"; import { PageTemplate, PageSection, PageCard, PageGrid, } from "@/components/layout/page-template"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; const MONEY_NAV_ITEMS = [ { title: "Expenses", icon: Receipt, href: "/money" }, { title: "Costs", icon: TrendingUp, href: "/money#costs" }, { title: "Pricing", icon: DollarSign, href: "/money#pricing" }, { title: "Plans", icon: CreditCard, href: "/money#plans" }, ]; const SAMPLE_EXPENSES = [ { id: 1, name: "Logo Design", amount: 299, date: "2025-01-15", category: "Design" }, { id: 2, name: "Domain Registration", amount: 12, date: "2025-01-10", category: "Infrastructure" }, { id: 3, name: "SSL Certificate", amount: 69, date: "2025-01-08", category: "Infrastructure" }, ]; const SAMPLE_COSTS = [ { id: 1, name: "Vercel Hosting", amount: 20, frequency: "monthly", category: "Infrastructure" }, { id: 2, name: "OpenAI API", amount: 45, frequency: "monthly", category: "Services" }, { id: 3, name: "SendGrid Email", amount: 15, frequency: "monthly", category: "Services" }, { id: 4, name: "Stripe Fees", amount: 0, frequency: "per transaction", category: "Services" }, ]; export default function MoneyPage() { const params = useParams(); const pathname = usePathname(); const workspace = params.workspace as string; const projectId = params.projectId as string; const sidebarItems = MONEY_NAV_ITEMS.map((item) => { const fullHref = `/${workspace}/project/${projectId}${item.href}`; return { ...item, href: fullHref, isActive: pathname === fullHref || pathname.startsWith(fullHref), }; }); const totalExpenses = SAMPLE_EXPENSES.reduce((sum, e) => sum + e.amount, 0); const monthlyCosts = SAMPLE_COSTS.filter(c => c.frequency === "monthly").reduce((sum, c) => sum + c.amount, 0); const annualCosts = monthlyCosts * 12; return ( {/* Financial Overview */}

${totalExpenses}

Total Expenses

One-time

${monthlyCosts}

Monthly Costs

Recurring

${annualCosts}

Annual Costs

Projected

$0

Revenue

Not launched

{/* Expenses (One-time) */} Add Expense } >
{SAMPLE_EXPENSES.map((expense) => (

{expense.name}

{expense.date}

{expense.category}

${expense.amount}

))}
{/* Costs (Recurring) */} Add Cost } >
{SAMPLE_COSTS.map((cost) => (

{cost.name}

{cost.frequency}

{cost.category}

{cost.amount === 0 ? "Variable" : `$${cost.amount}`}

))}
{/* Pricing Strategy */}

Define your pricing tiers and revenue model

{/* Plans (Revenue Tiers) */}

Free

$0

per month

  • Basic features
  • Community support
Popular

Pro

$29

per month

  • All features
  • Priority support
  • API access

Enterprise

Custom

contact us

  • Unlimited everything
  • Dedicated support
  • Custom integrations
); }