"use client";
import { IconAlertCircle } from "@tabler/icons-react";
import { Button } from "@kandev/ui/button";
import { RequestIndicator } from "@/components/request-indicator";
type UnsavedSaveButtonProps = {
isDirty: boolean;
isLoading: boolean;
status: "idle" | "loading" | "success" | "error";
onClick: () => void;
cleanLabel?: string;
disabled?: boolean;
};
const warningButtonClass = "border-yellow-500/60 text-yellow-500 hover:bg-yellow-500/10";
export function UnsavedChangesBadge() {
return Unsaved changes;
}
export function UnsavedSaveButton({
isDirty,
isLoading,
status,
onClick,
disabled,
cleanLabel = "Save",
}: UnsavedSaveButtonProps) {
return (
);
}