mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
feat: watch history
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
import React from "react";
|
||||
import { View } from "tamagui";
|
||||
|
||||
import { ItemListSection, watching } from "~/components/item/ItemListSection";
|
||||
import { ItemListSection } from "~/components/item/ItemListSection";
|
||||
import ScreenLayout from "~/components/layout/ScreenLayout";
|
||||
import { useBookmarkStore } from "~/stores/settings";
|
||||
import { useBookmarkStore, useWatchHistoryStore } from "~/stores/settings";
|
||||
|
||||
export default function HomeScreen() {
|
||||
const { bookmarks } = useBookmarkStore();
|
||||
const { watchHistory } = useWatchHistoryStore();
|
||||
|
||||
return (
|
||||
<View style={{ flex: 1 }} flex={1}>
|
||||
<ScreenLayout>
|
||||
<ItemListSection title="Bookmarks" items={bookmarks} />
|
||||
<ItemListSection title="Continue Watching" items={watching} />
|
||||
<ItemListSection
|
||||
title="Continue Watching"
|
||||
items={watchHistory.map((x) => x.item)}
|
||||
/>
|
||||
</ScreenLayout>
|
||||
</View>
|
||||
);
|
||||
|
Reference in New Issue
Block a user