mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-20 03:59:36 +02:00
25 lines
490 B
TypeScript
25 lines
490 B
TypeScript
|
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;
|