import { View, Text, Pressable, StyleSheet, Platform } from "react-native"; import React from "react"; import SearchBar from "../../../components/SearchBar"; import { Palette, Style } from "../../../styles"; import BorderGradient from "../../../components/BorderGradient/BorderGradient"; import { BlurView } from "expo-blur"; import { FONT_FAMILY } from "../../../styles/Fonts"; const ResearchHeader = ({ onPress, selected, searchValue = "", onChangeSearch = () => {}, showSearchBar = true, autoFocusSearch = true, }) => { return ( {showSearchBar && ( )} {["Musiques", "Playback", "Profils"].map((item, index) => ( onPress(item)}> {item} ))} ); }; export default ResearchHeader; const styles = StyleSheet.create({ menu: { fontSize: 12, color: Palette.white, fontFamily: FONT_FAMILY.InterRegular, }, borderGradient: { borderWidth: 1, borderRadius: 100, height: 30, position: "absolute", zIndex: 1, width: "100%", }, blurContainer: { height: 30, zIndex: -1, borderRadius: 100, overflow: "hidden", backgroundColor: Palette.glass, }, blurView: { width: "100%", height: "100%", justifyContent: "center", paddingHorizontal: 10, }, });