1 |
|
2 | import React from "react";
|
3 |
|
4 | import { verifyAssets } from "@applicaster/zapp-react-dom-ui-components/Helpers/protectHelper";
|
5 |
|
6 | import { shiftHexAlpha } from "@applicaster/zapp-react-dom-ui-components/Helpers/stylesReducer";
|
7 |
|
8 | import { Spinner } from "./Spinner";
|
9 |
|
10 | type Props = {
|
11 | styles: any,
|
12 | remoteConfigurations: any,
|
13 | };
|
14 |
|
15 | export const SplashComponent = ({ remoteConfigurations, styles }: Props) => {
|
16 | const image = verifyAssets(remoteConfigurations.assets, [
|
17 | "universal",
|
18 | "splash",
|
19 | ]);
|
20 | const color = shiftHexAlpha(
|
21 | verifyAssets(styles, [
|
22 | "tv",
|
23 | "loading_spinner_color",
|
24 | "color",
|
25 | ])
|
26 | );
|
27 | return (
|
28 | <div>
|
29 | <Spinner color={color} />
|
30 | <img src={image} />
|
31 | </div>
|
32 | );
|
33 | };
|