import { FC } from 'react' import { useRouter } from 'next/router' import { Button } from '@supabase/ui' import { Project } from 'types' interface Props { project: Project availableActions: any[] onSelectRestartProject: () => void } const NotificationActions: FC = ({ project, availableActions, onSelectRestartProject }) => { const router = useRouter() const onSelectUpgradeProject = () => { return router.push(`/project/${project.ref}/settings/billing/update/pro`) } return (
{availableActions.map((action: any) => { if (action.action_type === 'project.upgrade') { return ( ) } else if (action.action_type === 'postgresql.restart') { return ( ) } })}
) } export default NotificationActions