import Table from '../Table/Table.coffee'
import { Links } from '../../../api/links/links.coffee'

export default TableWithUrl = withTracker(=>
  linksHandle = Meteor.subscribe 'links'

  columns = [
    name: '_id'
    type: 'string'
    isMain: true
    title: 'ID'
    width: 150
  ,
    name: 'user.profile.name'
    type: 'string'
    title: '이름'
    width: 150
    textAlign: 'center'
  ,
    name: 'number'
    type: 'price'
    title: '가격'
    width: 150
  ,
    name: 'createdAt'
    type: 'date'
    title: '새성일'
    width: 150
  ]

  isReady: linksHandle.ready()
  rows: Links.find().fetch()
  columns: columns
) Table
