1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-20 03:59:36 +02:00
flame/client/src/components/Apps/AppGrid/AppGrid.tsx

25 lines
490 B
TypeScript
Raw Normal View History

import classes from './AppGrid.module.css';
import { App } from '../../../interfaces/App';
import AppCard from '../AppCard/AppCard';
interface ComponentProps {
apps: App[];
}
const AppGrid = (props: ComponentProps): JSX.Element => {
const apps = (
<div className={classes.AppGrid}>
{props.apps.map((app: App): JSX.Element => {
return <AppCard
key={app.id}
app={app}
/>
})}
</div>
);
return apps;
}
export default AppGrid;