summaryrefslogtreecommitdiffstats
path: root/.next/dist/lib/image.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2017-08-25 09:33:53 -0400
committerWes Bos <wesbos@gmail.com>2017-08-25 09:33:53 -0400
commit7af74ff8988961c988f03c95961b70c2918521ae (patch)
treed73cd0dd94751b76595b7febcae4162811c2040b /.next/dist/lib/image.js
parent416c2cbae0e69b724876d232bf813eefd7550174 (diff)
yay
Diffstat (limited to '.next/dist/lib/image.js')
-rw-r--r--.next/dist/lib/image.js13
1 files changed, 13 insertions, 0 deletions
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