mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
|
// Based on https://github.com/caroso1222/notyf/blob/master/recipes/react.md
|
||
|
|
||
|
import * as React from 'react';
|
||
|
import { Notyf } from 'notyf';
|
||
|
|
||
|
export default React.createContext(
|
||
|
new Notyf({
|
||
|
// Set your global Notyf configuration here
|
||
|
duration: 6000,
|
||
|
}),
|
||
|
);
|