Skip to content

Commit

Permalink
Add helper for getting social-platforms JSON dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanPak committed Apr 5, 2024
1 parent 562e549 commit bb0a1d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/larva-patterns/utils/getSocialPlatforms.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Get social platform information
*
* @param {Array} platforms "name" property values of desired platforms (see ../_data/social-platforms.json).
*/
module.exports = function( platforms ) {
return require( './getDataSet' )( 'social-platforms', 'name',
undefined === platforms ? [ 'instagram', 'pinit', 'twitter', 'facebook', 'youtube' ] : platforms
);
}

0 comments on commit bb0a1d4

Please sign in to comment.