Props for the SquareButton component Uses discriminated union to ensure type safety between recipe and image modes
Side length of the square button in pixels
Function called when button is pressed
Unique identifier for testing and accessibility
Optional
Screen-reader label; defaults to the recipe title, or a generic image label
Props for the SquareButton component Uses discriminated union to ensure type safety between recipe and image modes