mirror of
https://github.com/block/buzz.git
synced 2026-11-07 01:41:06 +00:00
Unify project navigation, repository controls, contextual agent chat, and compact work-item views so repository state and access recovery stay visible in one workspace. Signed-off-by: Thomas Petersen <thomasp@squareup.com>
18 lines
557 B
TypeScript
18 lines
557 B
TypeScript
import { toast } from "sonner";
|
|
|
|
import { projectCloneErrorPresentation } from "@/features/projects/lib/projectGitError";
|
|
import type { ProjectRepoUnavailableReason } from "@/features/projects/lib/projectRepoAvailability";
|
|
|
|
export function showProjectCloneErrorToast(
|
|
error: unknown,
|
|
cloneUrl?: string | null,
|
|
unavailableReason?: ProjectRepoUnavailableReason,
|
|
) {
|
|
const presentation = projectCloneErrorPresentation(
|
|
error,
|
|
cloneUrl,
|
|
unavailableReason,
|
|
);
|
|
toast.error(presentation.title, { description: presentation.description });
|
|
}
|