import React from "react"; import { Image, Platform, Pressable, Text, View } from "react-native"; import { icons } from "../assets"; import { Palette, Style } from "../styles"; import { FONT_FAMILY } from "../styles/Fonts"; import ProgressBar from "./ProgressBar"; const MusicLandHeader = ({ onPressBack, onPressSkip, showSkip = false, progress = 1, logo = null, }) => { const isWeb = Platform.OS === "web"; const backButtonStyle = isWeb ? { ...Style.containerRow, gap: 8, paddingHorizontal: 12, paddingVertical: 7, borderRadius: 100, borderWidth: 1, backgroundColor: Palette.ultraLightWhite, borderColor: Palette.ultraLightWhite, borderStyle: "solid", } : { width: 24, height: 24, ...Style.containerCenter }; const backIconSource = isWeb ? icons.chevronDown : icons.chevronDown; const backIconStyle = { width: 15, height: 15, transform: [{ rotate: "90deg" }], }; return ( {isWeb && ( Retour )} {showSkip && ( Passer )} ); }; export default MusicLandHeader;