full update

This commit is contained in:
payacom
2026-07-18 14:29:05 +03:30
parent 17f334d0f1
commit af5b27b610
239 changed files with 10283 additions and 3041 deletions

View File

@@ -0,0 +1,40 @@
"use client";
import React, { createContext, useContext, useState } from "react";
type ExploreReelsUiContextValue = {
chromeHidden: boolean;
setChromeHidden: (hidden: boolean) => void;
actionsExpanded: boolean;
setActionsExpanded: (expanded: boolean) => void;
};
const ExploreReelsUiContext = createContext<ExploreReelsUiContextValue | null>(
null
);
export function ExploreReelsUiProvider({
children,
}: {
children: React.ReactNode;
}) {
const [chromeHidden, setChromeHidden] = useState(false);
const [actionsExpanded, setActionsExpanded] = useState(false);
return (
<ExploreReelsUiContext.Provider
value={{
chromeHidden,
setChromeHidden,
actionsExpanded,
setActionsExpanded,
}}
>
{children}
</ExploreReelsUiContext.Provider>
);
}
export function useExploreReelsUi() {
return useContext(ExploreReelsUiContext);
}