In toDownload array there is type of each content

Can you add a filter in UI something like below to pick which kind of content to be download?
//random github page
[...new Set(toDownload.map(item=>item.type))]
> (7) ['image', 'document', 'stylesheet', 'sm-stylesheet', 'sm-script', 'script', 'other']
In toDownload array there is type of each content

Can you add a filter in UI something like below to pick which kind of content to be download?