import upload from 'gyazo-browser-upload' ; export default async ( buffer , options ) => { const res = await upload ( 'data:image/*;base64,' + buffer . toString ( 'base64' ) , options ) ; return { data : { permalink_url : res . url } } ; } ;