client/contexts/SubscriptionContext.js
//this writes data into the subscriptions folder
this writes data into the subscriptions folder
this writes data into the subscriptions folder
function writeSubscriptionData(name, price, userId) {
    const uuid = uid();
    set(ref(database, `users/` + userId + "/subscriptions/" + uuid), {
      name: name,
      price: price,
      uid: uuid,
    });
  }
function writeSubscriptionData ( name , price , userId ) { const uuid = uid ( ) ; set ( ref ( database , ` ` + userId + "/subscriptions/" + uuid ) , { name : name , price : price , uid : uuid , } ) ; }
this writes data into the subscriptions folder
this writes data into the subscriptions folder