mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Wohoo
This commit is contained in:
1 parent
23e69d1193
commit
2b94b56c92
11 files changed
+99
-41
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import React, { createContext, useEffect } from "react";
|
||||
import { useConfig } from "../../../config/hooks/useConfig";
|
||||
import ContactsIcon from "@material-ui/icons/Contacts";
|
||||
|
||||
const AppsContext = createContext(null);
|
||||
|
||||
export const useApps = () => {
|
||||
const [apps, setApps] = useConfig(AppsContext);
|
||||
|
||||
useEffect(() => {
|
||||
setApps("preinstalled", [
|
||||
{
|
||||
name: "Contacts",
|
||||
icon: <ContactsIcon />,
|
||||
},
|
||||
{
|
||||
name: "Contacts1",
|
||||
},
|
||||
{
|
||||
name: "Contacts2",
|
||||
},
|
||||
{
|
||||
name: "Contacts3",
|
||||
},
|
||||
{
|
||||
name: "Contacts4",
|
||||
},
|
||||
]);
|
||||
// eslint-disable-next-line
|
||||
}, []);
|
||||
|
||||
return [apps, setApps];
|
||||
};
|
||||
Reference in new issue
Block a user