import Feather from "@expo/vector-icons/Feather" import { type PressableProps, Pressable, View } from "react-native" import tw from "twrnc" import { SansSerifText } from "./sans-serif-text" type FeatherIconName = React.ComponentProps["name"] type ButtonIconProps = { name: FeatherIconName } function ButtonIcon({ name }: ButtonIconProps) { return } type ButtonProps = Omit & { label: string leadingIcon?: React.ReactNode trailingIcon?: React.ReactNode } export function Button({ style, label, leadingIcon, trailingIcon, ...props }: ButtonProps) { const hasIcons = leadingIcon != null || trailingIcon != null const textElement = {label} return ( {hasIcons ? ( {leadingIcon} {textElement} {trailingIcon} ) : ( textElement )} ) } Button.Icon = ButtonIcon