| 1 |
import { __ } from '@wordpress/i18n' |
| 2 |
import { usePagesStore } from '@onboarding/state/Pages' |
| 3 |
import { LeftArrowIcon } from '@onboarding/svg' |
| 4 |
|
| 5 |
export const SquareNextButton = () => { |
| 6 |
const { nextPage, currentPageIndex, pages } = usePagesStore() |
| 7 |
const currentPageKey = Array.from(pages.keys())[currentPageIndex] |
| 8 |
const pageState = pages.get(currentPageKey).state() |
| 9 |
|
| 10 |
return ( |
| 11 |
<button |
| 12 |
className="flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus h-14 rounded-none" |
| 13 |
onClick={nextPage} |
| 14 |
disabled={!pageState.ready} |
| 15 |
type="button"> |
| 16 |
{__('Next', 'extendify')} |
| 17 |
<LeftArrowIcon className="h-5 w-5" /> |
| 18 |
</button> |
| 19 |
) |
| 20 |
} |
| 21 |
|