/**
 * Not yet implemented
 */

// import { FontAwesome } from "@expo/vector-icons";
// import React, { LegacyRef, useRef } from "react"
// import { useState } from "react";
// import { MutableRefObject } from "react";
// import { Animated, View, Text, TouchableOpacity, FlatList, ListRenderItem } from "react-native";
// import SlidingUpPanel from "rn-sliding-up-panel"
// import { Landmark, LMComment } from "../types";

// export type LandmarkDetailsProps = {
//     selectedLandmark?: Landmark
//     panelRef: MutableRefObject<SlidingUpPanel> 
// }

// export type CommentProps = {
//     comment: LMComment
// }

// const Comment: React.FC<CommentProps> = ({comment}) => (
//     <View>
//         <Text>{comment.text}</Text>
//     </View>
// )

// export const RoutingPanel: React.FC<LandmarkDetailsProps> = ({selectedLandmark, panelRef}) => {
//     const [landmark, setLandmark] = useState<Landmark>();
    
//     let panelPosition = new Animated.Value(0);

//     const renderComment:ListRenderItem<LMComment> = ({item}) => (
//         <Comment comment={item} />
//     )

//     return (
//         <SlidingUpPanel 
//             animatedValue={panelPosition}
//             ref={panelRef as LegacyRef<SlidingUpPanel>} 
//             showBackdrop={false} 
//             allowDragging={true} 
//             draggableRange={{top: 500, bottom: 0}}
//             snappingPoints={[0, 150, 500]}>
//             <View style={{height: '100%', paddingTop: 10, paddingHorizontal: 20, backgroundColor: '#df3f3f'}}>
//                 <View style={{ marginBottom: 20, borderWidth: 2, borderRadius: 20, width: 50, height: 1, alignSelf: 'center', borderColor: 'white'}} >
//                 </View>
//                 <View style={{ flexDirection: 'row', marginBottom: 20, justifyContent: "space-between"}}>
//                     <Text style={{color: 'white' }}>{selectedLandmark?.title?.toUpperCase()}</Text>
//                     <FontAwesome name="close" color="white" size={20} onPress={() => panelRef.current.hide()}/>
//                 </View>
//                 <Text style={{color: 'white', marginBottom: 50}}>{selectedLandmark?.description}</Text>
//                 <Text style={{color: 'white', marginBottom: 50}}>Comments</Text>
//                 <View>

//                 </View>
//                 <TouchableOpacity>
//                 <FlatList<LMComment> 
//                     data={[
//                         {id: '1', text: 'Hello', poster: 'chase'}, {id: '3', text: 'Hello', poster: 'chase'}, {id: '2', text: 'Hello', poster: 'chase'},
//                         {id: '4', text: 'Hello', poster: 'chase'}, {id: '5', text: 'Hello', poster: 'chase'}, {id: '6', text: 'Hello', poster: 'chase'},
//                         {id: '9', text: 'Hello', poster: 'chase'}, {id: '8', text: 'Hello', poster: 'chase'}, {id: '7', text: 'Hello', poster: 'chase'},
//                         {id: '12', text: 'Hello', poster: 'chase'}, {id: '10', text: 'Hello', poster: 'chase'}, {id: '11', text: 'Hello', poster: 'chase'},
//                     ]} 
//                     renderItem={renderComment}
//                     style={{backgroundColor: 'white', height: 200}}/>
//                 </TouchableOpacity>
//             </View>
//         </SlidingUpPanel>)
// }