mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:53:24 +00:00
introduce store with idle tracking
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { useRouter } from "expo-router";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
|
||||
import { usePlayer } from "~/context/player.context";
|
||||
import { usePlayerStore } from "~/stores/player/store";
|
||||
|
||||
export const BackButton = ({
|
||||
className,
|
||||
}: Partial<React.ComponentProps<typeof Ionicons>>) => {
|
||||
const { unlockOrientation } = usePlayer();
|
||||
const unlockOrientation = usePlayerStore((state) => state.unlockOrientation);
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user