woocommerce/plugins/woocommerce-blocks/bin/hook-docs/format-hook-doc/files.js

12 lines
217 B
JavaScript

const files = ( sources ) => {
return sources && sources.length
? {
ul: sources.map( ( file ) => {
return `[${ file }](../../../../src/${ file })`;
} ),
}
: null;
};
module.exports = { files };