export const useIsLoggedIn = () => { const isLoggedIn = useState( 'isLoggedIn', () => localStorage.getItem('isLoggedIn') === 'true', ) return computed({ get: () => isLoggedIn.value, set: (value) => { isLoggedIn.value = value localStorage.setItem('isLoggedIn', value.toString()) }, }) } export const useRedirectUrl = () => useState('redirectUrl', () => null)