import React from 'react'; import { PixelToast } from './PixelToast'; import type { ToastItem } from './PxlKitToastProvider'; import { PixelButton } from '../actions'; const noop = () => {}; const baseToast = (overrides: Partial = {}): ToastItem => ({ id: 'demo', title: 'Saved', message: 'Your changes have been persisted.', tone: 'cyan', duration: 0, ...overrides, }); export function Default() { return ; } export function Tones() { return (
); } export function Surfaces() { return (
); } export function Loading() { return ( ); } export function WithAction() { return ( Retry ), })} onDismiss={noop} /> ); } const DotIcon = () => ( ); export function WithIcon() { return ( , })} onDismiss={noop} /> ); } export function Assertive() { return ( ); } export function WithProgress() { return ( ); }