2024-07-12 17:32:59 +02:00
|
|
|
import GooglePayPreviewButtonManager from './Preview/GooglePayPreviewButtonManager';
|
2023-09-21 11:58:51 +01:00
|
|
|
|
2024-06-04 22:10:37 +02:00
|
|
|
/**
|
|
|
|
* Accessor that creates and returns a single PreviewButtonManager instance.
|
|
|
|
*/
|
|
|
|
const buttonManager = () => {
|
2024-07-12 12:58:34 +02:00
|
|
|
if ( ! GooglePayPreviewButtonManager.instance ) {
|
|
|
|
GooglePayPreviewButtonManager.instance =
|
|
|
|
new GooglePayPreviewButtonManager();
|
|
|
|
}
|
2024-06-04 22:10:37 +02:00
|
|
|
|
2024-07-12 12:58:34 +02:00
|
|
|
return GooglePayPreviewButtonManager.instance;
|
2024-06-12 15:31:33 +02:00
|
|
|
};
|
2024-06-04 22:10:37 +02:00
|
|
|
|
|
|
|
// Initialize the preview button manager.
|
2024-06-07 12:23:03 +02:00
|
|
|
buttonManager();
|