import { useRouter } from 'next/router' function App({ Component, pageProps, app }) { const router = useRouter() const viewexample = (app) => { router.push({ pathname: '/addapp/[app]', query: { app: btoa(app.name)} }) } return (
viewexample(app)} className="w-[245px] h-[88px] transition-all relative cursor-pointer group flex p-2 items-center justify-center bg-slate-100/90 dark:bg-slate-900/90 shadow rounded hover:shadow-xl hover:bg-gradient-to-r hover:from-slate-900 hover:to-cyan-800 hover:text-white">
{ app.friendly_name }

{ app.categories && app.categories[0] || 'Unknown' }

) } export default App