import React from 'react'; import {Divider, Box, Button, Typography, Avatar} from '@mui/material'; import useStore from '../hooks/useStore'; import { StoreState } from './Store'; type Services = 'funi'|'crunchy'|'hidive'; export const serviceContext = React.createContext(undefined); const ServiceProvider: FCWithChildren = ({ children }) => { const [ { service }, dispatch ] = useStore(); const setService = (s: StoreState['service']) => { dispatch({ type: 'service', payload: s }); }; return service === undefined ? Please select your service : {children} ; }; export default ServiceProvider;