import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet, TouchableOpacityProps, } from 'react-native'; import {PreviewType, ProfilePreviewType, ScreenType} from '../../types'; import {TAGG_LIGHT_BLUE} from '../../constants'; import SearchResults from './SearchResults'; interface RecentSearchesProps extends TouchableOpacityProps { sectionTitle: PreviewType; sectionButtonTitle: string; recents: Array; screenType: ScreenType; } /** * An image component that returns the of the icon for a specific social media platform. */ const RecentSearches: React.FC = (props) => { return ( {props.sectionTitle} {props.sectionButtonTitle && ( Clear all )} ); }; const styles = StyleSheet.create({ mainContainer: { marginLeft: '3%', }, container: { flexDirection: 'row', }, title: { fontSize: 18, fontWeight: '600', flexGrow: 1, marginBottom: '5%', }, clear: { fontSize: 18, fontWeight: 'bold', color: TAGG_LIGHT_BLUE, }, }); export default RecentSearches;