steps
1 year ago
App.jsx
1 year ago
Footer.jsx
1 year ago
Header.jsx
1 year ago
StepFooter.jsx
1 year ago
StepWrapper.jsx
1 year ago
onboarding.js
1 year ago
Footer.jsx
30 lines
| 1 | /** |
| 2 | * External Dependencies |
| 3 | */ |
| 4 | import { wizard } from '@advancedAds/i18n'; |
| 5 | |
| 6 | /** |
| 7 | * Internal Dependencies |
| 8 | */ |
| 9 | import { adminUrl } from '@utilities'; |
| 10 | import { useWizard } from '@components/wizard'; |
| 11 | |
| 12 | export default function Footer() { |
| 13 | const { isLastStep } = useWizard(); |
| 14 | |
| 15 | if (isLastStep) { |
| 16 | return null; |
| 17 | } |
| 18 | |
| 19 | return ( |
| 20 | <div className="text-center"> |
| 21 | <a |
| 22 | href={adminUrl('admin.php?page=advanced-ads')} |
| 23 | className="no-underline text-base border-0 border-b-2 pb-0.5 border-solid border-gray-800 text-gray-800" |
| 24 | > |
| 25 | {wizard.exitLabel} |
| 26 | </a> |
| 27 | </div> |
| 28 | ); |
| 29 | } |
| 30 |