Files
new-phone-who-dis/src/apps/home/components/Home.js
T
2020-08-22 03:11:57 -03:00

22 lines
658 B
JavaScript

import React from "react";
import { AppWrapper } from "../../../ui/components";
import { useSettings } from "../../settings/hooks/useSettings";
import { GridMenu } from "./GridMenu";
import { Box } from "@material-ui/core";
import { useApps } from "../../appmarket/hooks/useApps";
export const HomeApp = () => {
const [settings] = useSettings();
const [apps] = useApps();
console.log(apps)
return (
<AppWrapper
style={{
backgroundImage: `${process.env.PUBLIC_URL}url(/media/backgrounds/${settings.wallpaper})`,
}}
>
<Box mt={6} px={4}>{apps && <GridMenu apps={apps.preinstalled} />}</Box>
</AppWrapper>
);
};