# extendify/0.10.1/src/Onboarding/components/SquareNextButton.js

Extendify, version 0.10.1. 21 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.10.1/code/src/Onboarding/components/SquareNextButton.js
- Raw: https://pluginprobe.com/plugins/extendify/0.10.1/raw/src/Onboarding/components/SquareNextButton.js
- Modified: 2022-09-07T00:59:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/0.10.1/code/src/Onboarding/components/SquareNextButton.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n'
import { usePagesStore } from '@onboarding/state/Pages'
import { LeftArrowIcon } from '@onboarding/svg'

export const SquareNextButton = () => {
    const { nextPage, currentPageIndex, pages } = usePagesStore()
    const currentPageKey = Array.from(pages.keys())[currentPageIndex]
    const pageState = pages.get(currentPageKey).state()

    return (
        <button
            className="flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus h-14 rounded-none"
            onClick={nextPage}
            disabled={!pageState.ready}
            type="button">
            {__('Next', 'extendify')}
            <LeftArrowIcon className="h-5 w-5" />
        </button>
    )
}

```
