import React from 'react';

import Search from './search';
// import Monitor from './monitor';
import Record from './record';
import Trajectory from './trajectory';
import Msg from './msg';
import Broadcast from './broadcast';
import Setting from './setting';

const mapping = {
  search: Search,
  msg: Msg,
  trajectory: Trajectory,
  record: Record,
  broadcast: Broadcast,
  // monitor: Monitor,
  setting: Setting
};

const Unkown = props => <div>暂未定义</div>;

export default function getContent(key){
  return mapping[key] || Unkown;
}
