import React from 'react'; import MangaCard from './MangaCard'; interface IProps{ mangas: IManga[] message?: string } export default function MangaGrid(props: IProps) { const { mangas, message } = props; let mapped; if (mangas.length === 0) { mapped =

{message !== undefined ? message : 'loading...'}

; } else { mapped = (
{mangas.map((it) => ( ))}
); } return mapped; }