🚚 Move new-frontend to frontend (#652)

This commit is contained in:
Alejandra
2024-03-08 19:23:54 +01:00
committed by GitHub
parent 3b44537361
commit 9d703df254
97 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
import { useCallback } from 'react'
import { useToast } from '@chakra-ui/react'
const useCustomToast = () => {
const toast = useToast()
const showToast = useCallback(
(title: string, description: string, status: 'success' | 'error') => {
toast({
title,
description,
status,
isClosable: true,
position: 'bottom-right',
})
},
[toast],
)
return showToast
}
export default useCustomToast