"use client";
import { usePrototypeReviewOptional } from "@prototype/lib/prototypes/prototype-review-context";
import { cn } from "@prototype/lib/utils";
import { Plus } from "lucide-react";
import styles from "./prototype-state-canvas-overlay.module.scss";
type PrototypeStateMapAddStateButtonProps = {
variant?: "default" | "icon";
className?: string;
};
export function PrototypeStateMapAddStateButton({
variant = "default",
className,
}: PrototypeStateMapAddStateButtonProps = {}) {
const review = usePrototypeReviewOptional();
const openCreateStateModal = review?.openCreateStateModal;
if (!openCreateStateModal) return null;
if (variant === "icon") {
return (
);
}
return (
);
}