31 lines
546 B
JavaScript
31 lines
546 B
JavaScript
import { openNotification } from './Notification';
|
|
|
|
export default {
|
|
title: 'Notification',
|
|
};
|
|
|
|
export const Notification = () => (
|
|
<>
|
|
<button
|
|
onClick={() => {
|
|
openNotification('error', {
|
|
message: 'message',
|
|
description: 'description',
|
|
});
|
|
}}
|
|
>
|
|
Open Error
|
|
</button>
|
|
<button
|
|
onClick={() => {
|
|
openNotification('success', {
|
|
message: 'message',
|
|
description: 'description',
|
|
});
|
|
}}
|
|
>
|
|
Open Success
|
|
</button>
|
|
</>
|
|
);
|