Use Toggleable component to improve the Snippets component. This allows us to remove unnecessary functions and optimize the component.