import React from 'react';
import PouchDB from 'pouchdb';

function createDatabaseCDB (props.databaseName) {
  const db = new PouchDB(props.databaseName);
  try {
  await db.replicate.to('http://192.168.0.234:5894/'+{props.databaseName});
  } catch (error) {
    console.error('Error synchronizing local database with remote: ', error);
  }
}
