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

{title}

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