index.js 591 Bytes
Newer Older
Muhammadali's avatar
Muhammadali committed
1 2 3
/** @format */

import React from 'react';
Muhammadali's avatar
Muhammadali committed
4
import { createRoot } from 'react-dom/client';
Muhammadali's avatar
Muhammadali committed
5
import { Toaster } from 'react-hot-toast';
Muhammadali's avatar
Muhammadali committed
6
import { BoxDialer } from './lib/boxDIaler';
Muhammadali's avatar
Muhammadali committed
7
import './index.css';
Muhammadali's avatar
Muhammadali committed
8
import ControlRenderBX from './lib/controlRenderBX';
Muhammadali's avatar
Muhammadali committed
9
import LanguageController from './lib/languageController';
Muhammadali's avatar
Muhammadali committed
10
window.BoxDialer = new BoxDialer();
Muhammadali's avatar
Muhammadali committed
11

12
const container = document.getElementById('boxdialerwidjet');
Muhammadali's avatar
Muhammadali committed
13 14 15
const root = createRoot(container);

root.render(
Muhammadali's avatar
Muhammadali committed
16
	<React.StrictMode>
Muhammadali's avatar
Muhammadali committed
17 18 19 20
		<LanguageController>
			<Toaster />
			<ControlRenderBX />
		</LanguageController>
Muhammadali's avatar
Muhammadali committed
21 22
	</React.StrictMode>,
);