Preparing search index...
    SquareButtonProps: { side: number; onPressFunction: () => void; testID: string } & (
        propIsRecipe
        | propIsImg
    )

    Props for the SquareButton component Uses discriminated union to ensure type safety between recipe and image modes

    Type Declaration

    • side: number

      Side length of the square button in pixels

    • onPressFunction: () => void

      Function called when button is pressed

    • testID: string

      Unique identifier for testing and accessibility