Description:This code defines a set of Higher-Order Components (HOCs) in Framer that add interactive animations and stateful behavior to any component.
withRotate → Rotates the component 90° with a smooth 2-second animation.
withHover → Adds a subtle hover effect that slightly scales the component.
withRandomColor → Uses Framer’s store to manage background color and changes it randomly when the component is clicked.
These HOCs make it easy to enhance UI elements with motion, interactivity, and dynamic styling while keeping components clean and reusable.