middlewarehq / unwrapped

Spotify Wrapped for developers.
https://www.middlewarehq.com/unwrapped
MIT License
64 stars 4 forks source link

Add usePrebuiltToasts hook and customize Toaster component #121

Closed shivam-bit closed 11 months ago

shivam-bit commented 11 months ago

This pull request adds a new hook called usePrebuiltToasts and customizes the Toaster component. The usePrebuiltToasts hook provides prebuilt toast functions for displaying error messages, such as InvalidEmailToast, emailIsRequiredToast, noImagesToast, and invalidUrlToast. The Toaster component is also customized with a new position and toast options.