import { GetPosts } from "threadiverse";

import { handleSelector } from "#/features/auth/authSelectors";
import { useAppSelector } from "#/store";

export default function useCommonPostFeedParams():
  Pick<GetPosts, "show_nsfw"> | undefined {
  const handle = useAppSelector(handleSelector);

  if (handle === "fedinsfw.app") return { show_nsfw: true };
}
