import { observer } from "mobx-react-lite"; import Link from "next/link"; import { useRouter } from "next/router"; // helpers import { truncateText } from "@/helpers/string.helper"; type Props = { view: { key: string; label: string } }; export const GlobalDefaultViewListItem: React.FC = observer((props) => { const { view } = props; // router const router = useRouter(); const { workspaceSlug } = router.query; return (

{truncateText(view.label, 75)}

); });