export default (format) => {
  const render = formats[format];
  if (!render) {
    throw new Error(`unkown format: ${format}`);
  }