import Uik from "../../ui-kit"
import Title from "./Title"
function Example () {
return (
<>
Click to show notifications
Uik.notify.info('This is a default notification.\nIt will go away after 4 seconds.')}
/>
Uik.notify.success('Successfully updated.')}
/>
Uik.notify.danger('An error has occurred.')}
/>
Uik.notify.info({
message: 'This notification will disappear after 1 second.',
aliveFor: 1
})}
/>
Uik.notify.info({
message: 'This notification will remain on screen until it\'s manually closed.',
keepAlive: true
})}
/>
Uik.notify.success({
message: 'You have successfully created a new wallet.',
children:
})}
/>
Uik.notify.info({
message: 'Use notifications as prompts.\nNotification will close if any button is clicked.',
keepAlive: true,
children: <>
alert('Confirmed')}/>
>
})}
/>
>
)
}
const code = `<>
Uik.notify.info('This is a default notification.\nIt will go away after 4 seconds.')}
/>
Uik.notify.success('Successfully updated.')}
/>
Uik.notify.danger('An error has occurred.')}
/>
Uik.notify.info({
message: 'This notification will disappear after 1 second.',
aliveFor: 1
})}
/>
Uik.notify.info({
message: 'This notification will remain on screen until it\\'s manually closed.',
keepAlive: true
})}
/>
Uik.notify.success({
message: 'You have successfully created a new wallet.',
children:
})}
/>
Uik.notify.info({
message: 'Use notifications as prompts.\\nNotification will close if any button is clicked.',
keepAlive: true,
children: <>
alert('Confirmed')}
/>
>
})}
/>
>`
export default Example