SPB Git

spb/vquant Public MIT

VibeQuant — AI-powered institutional-grade financial intelligence platform.

TypeScript 84.3% Python 11.7% JavaScript 1.6% CSS 1.5% HTML 0.7%
1.4 KB · 50 lines tsx
Raw Blame History
1/*2 * =============================================================================3 *  VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 *  File:      client/src/components/ui/toaster.tsx6 *7 *  Author:    Simon-Pierre Boucher8 *  Contact:   contact@spboucher.ai9 *  Website:   https://www.spboucher.ai10 *  Demo:      https://www.vquant.ai11 *  License:   MIT (see LICENSE)12 *13 *  Copyright © 2026 Simon-Pierre Boucher. All rights reserved.14 * =============================================================================15 */1617import { useToast } from "@/hooks/use-toast"18import {19  Toast,20  ToastClose,21  ToastDescription,22  ToastProvider,23  ToastTitle,24  ToastViewport,25} from "@/components/ui/toast"2627export function Toaster() {28  const { toasts } = useToast()2930  return (31    <ToastProvider>32      {toasts.map(function ({ id, title, description, action, ...props }) {33        return (34          <Toast key={id} {...props}>35            <div className="grid gap-1">36              {title && <ToastTitle>{title}</ToastTitle>}37              {description && (38                <ToastDescription>{description}</ToastDescription>39              )}40            </div>41            {action}42            <ToastClose />43          </Toast>44        )45      })}46      <ToastViewport />47    </ToastProvider>48  )49}50