import type { VariantProps } from "class-variance-authority"

import type { toastVariants } from "./variants"

export type ToastsProps = Omit<React.HTMLAttributes<HTMLDivElement>, "color"> &
  VariantProps<typeof toastVariants> & {
    onClose?: () => void
  } & (
    | {
        children: React.ReactNode
        message?: never
      }
    | {
        children?: never
        message: React.ReactNode
      }
  )
