mirror of
https://github.com/iritmaximus/wasab.git
synced 2026-10-12 20:03:31 +03:00
17 lines
492 B
TypeScript
17 lines
492 B
TypeScript
import type { AppGroupInfo, AppInfo } from '../apps';
|
|
import { AppCard } from './AppCard';
|
|
|
|
export function AppGroup({ group, apps }: { group: AppGroupInfo; apps: readonly AppInfo[] }) {
|
|
const headingId = `group-${group.id}`;
|
|
return (
|
|
<section className="group" aria-labelledby={headingId}>
|
|
<h2 id={headingId}>{group.title}</h2>
|
|
<ul className="cards">
|
|
{apps.map((app) => (
|
|
<AppCard key={app.id} app={app} />
|
|
))}
|
|
</ul>
|
|
</section>
|
|
);
|
|
}
|