import type { JSX } from 'solid-js'; import { For } from 'solid-js'; import type { Toast } from '@/primitives/createToasts'; import { linkButton } from './styles'; interface Props { toasts: Toast[]; onDismiss: (id: number) => void; } /** The toasts, stacked in the bottom right corner with the newest lowest. */ export function ToastList(props: Props): JSX.Element { return ( // The stack lets clicks through to the page; only the toasts take them.
{(toast) => ( )}
); }