const mockImage = './product-switcher-logo.svg';
export const handleReject = () => {
    return new Promise((_resolve, reject) => reject(''));
};
export const handleGetProducts = (params) => {
    return new Promise((resolve) => setTimeout(() => resolve(params?.data || [
        {
            id: '1',
            name: 'Астрал Отчет 5.0',
            url: 'https://product1',
            logoUrl: mockImage,
            color: '#2e77ff',
        },
        {
            id: '2',
            name: 'Астрал.ЭДО',
            url: 'https://product2',
            logoUrl: mockImage,
            color: '#33adf2',
        },
        {
            id: '3',
            name: 'Астрал iKЭДО',
            url: 'https://product3',
            logoUrl: mockImage,
            color: '#755afd',
        },
        {
            id: '4',
            name: 'Астрал.ОФД',
            url: 'https://product4',
            logoUrl: mockImage,
            color: '#00b2ff',
        },
        {
            id: '5',
            name: 'Астрал Доверенность',
            url: 'https://product5',
            logoUrl: mockImage,
            color: '#7856ff',
        },
        {
            id: '6',
            name: 'Личный Кабинет',
            url: 'https://product6',
            logoUrl: mockImage,
            color: '#00b2ff',
        },
        {
            id: '7',
            name: 'Личный Кабинет Партнёра',
            url: 'https://product7',
            logoUrl: mockImage,
            color: '#7856ff',
        },
    ]), params?.timeout || 1500));
};
