import Component from './component.js'
import TdComponent from './td.js'
import ThComponent from './th.js'

export default class TrComponent extends Component {
  constructor(parent, selector) {
    if (selector) {
      super(parent, selector);
    } else {
      super(parent, 'tr');
    }
  }
  get thCo() {
    return new ThComponent(this.currentPath);
  }
  get tdCo() {
    return new TdComponent(this.currentPath);
  }
}
