import Router from 'next/router' import {Button} from '@rmwc/button' import styles from './actionBar.module.css' export default function AdminActionBar({title, actions, children}) { return (

{title}

{actions && Array.isArray(actions) && actions.map(action => { if(action.url) return if(action.onClick) return return })} {children}
) }