{hasPreviousStep() && !hideBackButton && (
)}
{steps?.length > 2 && !settings?.hideDotsNav ? (
) : null}
{hasNextStep() ? (
) : (
)}
);
};
const addPaddingToRect = (rect, padding) => ({
top: rect.top - (padding?.top ?? 0),
left: rect.left - (padding?.left ?? 0),
right: rect.right + (padding?.right ?? 0),
bottom: rect.bottom + (padding?.bottom ?? 0),
width: rect.width + (padding?.left ?? 0) + (padding?.right ?? 0),
height: rect.height + (padding?.top ?? 0) + (padding?.bottom ?? 0),
x: rect.x - (padding?.left ?? 0),
y: rect.y - (padding?.top ?? 0),
});