import countdownTimer from './countdown_timer/main'
import firebaseLogin from './firebase_login/main'
import view from './view'
import {Observable} from 'rx'

export default function main ({DOM}) {
  const facebookLogin = firebaseLogin(DOM)
  const pomodoroTimer = countdownTimer({
    DOM,
    props$: Observable.just({
      startTimeMinutes: 0.05
    })
  },
  'pomodoro-timer')

  const vtree$ = view(
    facebookLogin.DOM,
    pomodoroTimer.DOM
  )

  return {
    DOM: vtree$,
    notification: pomodoroTimer.notification
  }
}

@@ -39,20 +39,21 @@
 n_timer/
-ma
 in
+dex
 '%0Aimport
@@ -312,12 +312,10 @@
 ble.
-just
+of
 (%7B%0A 
@@ -356,28 +356,8 @@
 %0A  %7D
-,%0A  'pomodoro-timer'
 )%0A%0A 

Update to reflect new MVI structure