import { BlurView } from "expo-blur"; import React from "react"; import { Image, Pressable, Text, View } from "react-native"; import { Palette, Style } from "../styles"; import { FONT_FAMILY } from "../styles/Fonts"; import { size } from "../styles/Style"; import BorderGradient from "./BorderGradient/BorderGradient"; const HEIGHT_BY_SIZE = { small: 40, medium: 50, large: 58, }; const FONT_SIZE_BY_SIZE = { small: 13, medium: 15, large: 17, }; const BorderGradientButton = ({ title = "J’ai déjà mes paroles", onPress, icon, titleStyle, containerStyle = {}, tint = "dark", disabled = false, maxWidth = null, size = "medium", }) => { const resolvedSize = HEIGHT_BY_SIZE[size] ? size : "medium"; const buttonHeight = HEIGHT_BY_SIZE[resolvedSize]; const fontSize = FONT_SIZE_BY_SIZE[resolvedSize]; const iconSize = resolvedSize === "small" ? 14 : 16; return ( {icon && } {title} ); }; export default BorderGradientButton;