Implements the component for getting the snippet code