import { Slot } from 'expo-router';
import React, { useEffect } from 'react';
import { initDatabase } from '../services/database';
import { AuthProvider } from './contexts/AuthContext';

export default function _layout() {

  useEffect(() => {
    initDatabase();
  }, []);

  console.log("layout called")
  return (
    <AuthProvider>
      <Slot />
    </AuthProvider>
  )
}