import React, { Component } from 'react'
import cfxify from 'cfx.react.dom'
import getLinks from 'cfx.react.link'

CFX = cfxify {}

export default (Link) => ({
  location
  children
}) =>
  CFX = CFX._.extends (
    getLinks Link()
    ,
      onSubmitLinks: '/onSubmitLinks'
  )

  render: ->
    
    {
      c_onSubmitLinks
    } = CFX
    
    c_onSubmitLinks {}
    , children
    