wix-style-react
Version:
wix-style-react
28 lines (27 loc) • 771 B
JavaScript
/* eslint-disable react/prop-types */
import React from 'react';
import { MessageBoxFunctionalLayout } from 'wix-style-react/MessageBox';
import Checkbox from 'wix-style-react/Checkbox';
import Text from 'wix-style-react/Text';
export default (function () {
return React.createElement(
MessageBoxFunctionalLayout,
{
title: 'Message With Actions',
confirmText: 'Confirm',
cancelText: 'Cancel',
theme: 'blue',
dataHook: 'alert-actions',
sideActions: React.createElement(
Checkbox,
null,
React.createElement(
Text,
null,
'Please don\'t show me this again.'
)
)
},
'This is a generic message. No harm done, but really needed to interrupt you.'
);
});