| 1 |
import { DialogTitle } from '@headlessui/react'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
import { check, Icon } from '@wordpress/icons'; |
| 4 |
|
| 5 |
const SuccessIcon = () => ( |
| 6 |
<> |
| 7 |
<div className="p-2 rounded-full bg-[#4AB866]/25"> |
| 8 |
<Icon |
| 9 |
icon={check} |
| 10 |
className="h-10 w-10 rounded-full bg-[#4AB866] fill-white" |
| 11 |
/> |
| 12 |
</div> |
| 13 |
</> |
| 14 |
); |
| 15 |
|
| 16 |
export const SetupComplete = ({ handleClose }) => { |
| 17 |
return ( |
| 18 |
<div className="px-16 py-10 flex flex-col items-center justify-center"> |
| 19 |
<div className="mb-6"> |
| 20 |
<SuccessIcon /> |
| 21 |
</div> |
| 22 |
<DialogTitle className="text-xl font-semibold text-center text-gray-900 mb-2 font-sans"> |
| 23 |
{__('Setup complete', 'extendify-local')} |
| 24 |
</DialogTitle> |
| 25 |
<p className="text-center text-gray-700 mb-2 text-base"> |
| 26 |
{__( |
| 27 |
'Your plugin accounts have been set up. Account activation may take a moment to complete.', |
| 28 |
'extendify-local', |
| 29 |
)} |
| 30 |
</p> |
| 31 |
<button |
| 32 |
type="button" |
| 33 |
onClick={handleClose} |
| 34 |
className="mt-6 px-6 py-3 text-base font-medium text-white bg-extendify-main rounded-lg hover:bg-extendify-main-dark focus:outline-none focus:ring-2 focus:ring-extendify-main focus:ring-offset-2" |
| 35 |
> |
| 36 |
{__('Close', 'extendify-local')} |
| 37 |
</button> |
| 38 |
</div> |
| 39 |
); |
| 40 |
}; |
| 41 |
|