import { IonCol, IonIcon, IonImg, IonItem, IonLabel, IonSkeletonText } from "@ionic/react"; import { chevronForwardOutline } from "ionicons/icons"; import { Character } from "../../types"; import styles from "./CharacterItem.module.scss"; interface Props { details: Character; load?: boolean; grid?: boolean; } const CharacterItem = (props: Props): React.JSX.Element => { const { details, load = false, grid = true } = props; const loadAmount = 20; if (!load) { return (
{ details.name }
); } else { return ( <> { Array.from({length: loadAmount }, (item, index) => { return ( ); })} ); } } export default CharacterItem;