const creators = {};
export function paymentDetailsAdd(type, creator) {
  creators[type] = creator;
}
export function paymentDetailsCreate(option, cosmetic) {
  const creator = creators[option.type];
  return creator ? creator(option, cosmetic) : undefined;
}
