import { notify } from "@/lib/notificationStore" /** * The two things most call sites have to say. * * A thin front on `notify` — the description is the whole message now, since a * card that leads with "Success!" spends its first line saying nothing. Kept as * a hook because that is how it is called everywhere; anything needing a * severity, a button or a persistent card calls `notify` directly. */ const useCustomToast = () => { const showSuccessToast = (description: string) => { notify(description, "success") } const showErrorToast = (description: string) => { notify(description, "error") } return { showSuccessToast, showErrorToast } } export default useCustomToast