import { useRouter } from "next/router"; import Link from "next/link"; import { observer } from "mobx-react-lite"; // 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)}

); });