import { CSSProperties } from "react";
import { VariantType } from "react-tooltip";

export const _TooltipDefaultParams = ({
  id,
  variant = id === "delete" ? "error" : "info",
  styles,
}: {
  id: string;
  variant?: VariantType;
  styles?: CSSProperties;
}) => ({
  id,
  delayShow: 500,
  delayHide: 500,
  variant,
  style: { backgroundColor: variant === "error" ? "#F23030" : "", ...styles },
});
