import axios from 'axios';
import { App } from 'vue';

export default {
    install(app: App, options: { baseURL: string }) {
        const axiosUiKitConfig = axios.create({
            baseURL: options?.baseURL || '',
            timeout: 60_000,
            headers: {
                'Content-Type': 'application/json',
            },
        });

        app.provide('axiosUiKitConfig', axiosUiKitConfig);
    },
};
