LeadsPage (page.tsx)

matsource · ui, leads, data-table, sortable-table, call-tracking, crm

Displays leads with associated call attempt counts and last call outcome information in a sortable data table for sales tracking.

// Source: https://github.com/jonnieluv/matsource | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { Suspense } from "react"
import { DataTable } from "@/components/ui/data-table"
import { columns } from "@/components/leads/leads-columns"
import { createClient } from "@/utils/supabase/server"
import { LeadWithCallCount } from "@/lib/models/leads"
import { UsersIcon, PhoneIcon, CalendarIcon } from "lucide-react"
import { Button } from "@/components/ui/button"
import Link from "next/link"
import { LoadingSpinner } from "@/components/ui/loading-spinner"

async function getLeadsWithCallCounts() {
  const supabase = await createClient()
  const {data:{ user} } = await supabase.au

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key