Skip to content

armgit / crm

Public Imported from GitHub
0

Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM.

TypeScript
322 B
Raw Blame
import { workspaceUrl } from "@/lib/workspace-url";

export function recordHref(
	slug: string,
	list: "/companies" | "/contacts" | "/deals",
	kind: "company" | "contact" | "deal",
	id: string,
): string {
	const query = new URLSearchParams({ record: `${kind}:${id}` });

	return `${workspaceUrl(slug, list)}?${query}`;
}