import { useEffect, useState } from 'react'; import { Plugins } from '@capacitor/core'; import * as actions from '../../store/actions'; const Nav = ({ page }) => { const [showProfileMenu, setShowProfileMenu] = useState(false); const title = typeof page.title === 'function' ? page.title() : page.title; useEffect(() => { Plugins.StatusBar.setStyle({ style: 'DARK', }).catch(() => {}); }, []); return ( ); }; export default Nav;