Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
export type ReviewAction = "APPROVE" | "COMMENT" | "REJECT";
export function isReviewSubmitDisabled({
action,
canApprove,
commentMissing,
loading,
}: {
action: ReviewAction;
canApprove: boolean;
commentMissing: boolean;
loading: boolean;
}): boolean {
return (
loading ||
(action === "APPROVE" && !canApprove) ||
(action === "COMMENT" && commentMissing) ||
(action === "REJECT" && commentMissing)
);
}