pub fn read_component(s: &str) -> Result<(Component, &str)>
Parse one component and return the rest of the string.