added carousel image on post on mainFeed

This commit is contained in:
SlimusMinus
2026-10-09 01:21:14 +03:00
parent 55c71e664d
commit b924483231
12 changed files with 29 additions and 205 deletions

View File

@@ -4,7 +4,7 @@ import { useState, useCallback } from "react";
* Управляет всеми модалками MainFeed через единое состояние,
* чтобы гарантировать что открыта максимум одна модалка сразу.
*
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "viewer"
* Типы: "create" | "edit" | "profile" | "auth" | "rules" | "postDetail"
*/
export function useModals() {
const [modal, setModal] = useState(null); // { type, payload }