import { FC, ReactNode } from "react"
import { Pressable, Image, ImageStyle, Text, View, Alert, ImageSourcePropType, TextStyle } from "react-native"
import React from "react"
import { Skin } from "../core/skin"
import { trace } from "console"
export const ElementAffichage :
FC<{element: any, styleImage: ImageStyle, styleTitle : TextStyle,nav: any}> =
({element, styleImage, styleTitle, nav}) =>
{
if (element instanceof Skin)
{
return(
Alert.alert("Achat du skin")}>
{element.getSkinName()}
)
}
return(
Type invalide pour ce composant
)
/*else if(element.type()==Game)
{
return (
Alert.alert("Lancement du jeu")}>
)
}*/
}