import { useRouter } from 'next/router' function Workspace({ Component, pageProps, workspace }) { const router = useRouter() const viewexample = (workspace) => { router.push({ pathname: '/new/[workspace]', query: { workspace: btoa(workspace.name)} }) } return (
{ workspace.categories && workspace.categories[0] || 'Unknown' }