streamarr/src/features/overview/overview.tsx
Chris Kruining d683b051b6
kaas
2025-05-18 18:12:42 +02:00

37 lines
870 B
TypeScript

import {
Component,
createEffect,
createSignal,
Index,
onMount,
} from "solid-js";
import type { Entry, Category } from "../content";
import { ListItem } from "./list-item";
import { List } from "~/components/list";
import { Hero } from "~/components/hero";
import css from "./overview.module.css";
type OverviewProps = {
highlights: Entry[];
categories: Category[];
};
export const Overview: Component<OverviewProps> = (props) => {
return (
<div class={css.container}>
<Hero class={css.hero} entries={props.highlights}></Hero>
<Index each={props.categories}>
{(category) => (
<List
class={css.list}
label={category().label}
items={category().entries}
>
{(entry) => <ListItem entry={entry()} />}
</List>
)}
</Index>
</div>
);
};