Preparing search index...
    SquareButtonProps: {
        side: number;
        onPressFunction: () => void;
        testID: string;
        accessibilityLabel?: 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

    • OptionalaccessibilityLabel?: string

      Screen-reader label; defaults to the recipe title, or a generic image label