import { CheckCircleIcon, CloseIcon, DangerDiamondIcon, InfoCircleIcon, WarningTriangleIcon, } from '@pluralsight/icons' import { getIconButtonProps, getIconProps, getToastButtonProps, getToastContainerProps, getToastHeadingProps, } from '@pluralsight/headless-styles' import type { IconOptions, ToastOptions, } from '@pluralsight/headless-styles/types' import { type PropsWithChildren } from 'react' import type { ToastProps } from '../context/Toast/types.ts' import { Show } from './Show.tsx' interface MatchToastProps extends Pick { iconOptions: IconOptions } function MatchToastIcon(props: MatchToastProps) { const iconProps = getIconProps(props.iconOptions) switch (props.sentiment) { case 'success': return case 'warning': return case 'danger': return case 'info': default: return } } // interface ToastElProps extends ToastOptions, Pick { onClose: () => void } export function Toast(props: PropsWithChildren) { const { children, onClose, onAction, sentiment } = props const toastProps = getToastContainerProps({ sentiment }) const closeBtnProps = getIconButtonProps(toastProps.closeButtonOptions) return (
{children}
) } // export function ToastHeading( props: PropsWithChildren> ) { const headingProps = getToastHeadingProps() return (

{props.children}

) } // export function ToastText(props: PropsWithChildren>) { return

}