import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet, TouchableOpacityProps, ScrollView, } from 'react-native'; import { PreviewType, ProfilePreviewType, ScreenType, CategoryPreviewType, } from '../../types'; import {TAGG_LIGHT_BLUE} from '../../constants'; import SearchResults from './SearchResults'; import {SCREEN_HEIGHT} from '../../utils'; interface RecentSearchesProps extends TouchableOpacityProps { sectionTitle: PreviewType; recents: Array; recentCategories: CategoryPreviewType[]; screenType: ScreenType; } const RecentSearches: React.FC = (props) => { const {sectionTitle, recents, recentCategories, screenType} = props; return ( {sectionTitle} Clear all ); }; const styles = StyleSheet.create({ mainContainer: { flex: 1, }, contentContainer: { paddingBottom: SCREEN_HEIGHT * 0.1, flex: 1, }, header: { paddingHorizontal: 25, paddingVertical: 5, flexDirection: 'row', }, title: { fontSize: 18, fontWeight: '600', flexGrow: 1, }, clear: { fontSize: 18, fontWeight: 'bold', color: TAGG_LIGHT_BLUE, }, }); export default RecentSearches;