import { IconAlertTriangle, IconCircleCheck, IconCircleX, IconInfoCircle, IconWifiOff, } from '@tabler/icons-react';
/** Normalises an `sx` prop into an array so it can be spread when composing styles. */
export const toSxArray = (sx) => {
    if (!sx)
        return [];
    if (Array.isArray(sx))
        return sx;
    return [sx];
};
export const getDefaultIcon = (variant) => {
    switch (variant) {
        case 'success':
            return IconCircleCheck;
        case 'error':
            return IconCircleX;
        case 'warning':
            return IconAlertTriangle;
        case 'wifi-off':
            return IconWifiOff;
        default:
            return IconInfoCircle;
    }
};
export const getColor = (variant) => {
    switch (variant) {
        case 'wifi-off':
            return 'warning';
        default:
            return variant;
    }
};
