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