"use client"; import { useEffect, useRef } from "react"; import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine"; import { autoScrollForElements } from "@atlaskit/pragmatic-drag-and-drop-auto-scroll/element"; import { observer } from "mobx-react"; // components import { PageHead } from "@/components/core"; import { ProjectSettingsLabelList } from "@/components/labels"; // hooks import { useProject } from "@/hooks/store"; const LabelsSettingsPage = observer(() => { const { currentProjectDetails } = useProject(); const pageTitle = currentProjectDetails?.name ? `${currentProjectDetails?.name} - Labels` : undefined; const scrollableContainerRef = useRef(null); // Enable Auto Scroll for Labels list useEffect(() => { const element = scrollableContainerRef.current; if (!element) return; return combine( autoScrollForElements({ element, }) ); }, [scrollableContainerRef?.current]); return ( <>
); }); export default LabelsSettingsPage;