From 7af74ff8988961c988f03c95961b70c2918521ae Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 25 Aug 2017 09:33:53 -0400 Subject: yay --- .next/dist/lib/image.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .next/dist/lib/image.js (limited to '.next/dist/lib/image.js') diff --git a/.next/dist/lib/image.js b/.next/dist/lib/image.js new file mode 100644 index 0000000..53e68cd --- /dev/null +++ b/.next/dist/lib/image.js @@ -0,0 +1,13 @@ +'use strict'; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +exports.default = function (image) { + var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300; + var height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300; + + if (!image || !image.secret) return ''; + return 'https://images.graph.cool/v1/cj5xz8szs28930145gct82bdj/' + image.secret + '/' + width + 'x' + height; +}; \ No newline at end of file -- cgit v1.3