Saving assets to the library

Hi,

I have previously added a load of components to my assets library and don’t know how I did it. I can’t find any tutorials or material on it, only stuff that Figma seems to have removed.

Question 1: How do I add components to my asset library?

Question 2: Why can I not search within a file for assets? When I have a file open and use the “search” in the assets tab it only searches the library, not the file, which is counterintuitive

Many thanks,

Adam