Using export instead of props