summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/projects/ProjectActions.js
blob: a13034e9897151eb37ae38d02960b765450bfd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react'
import { useDispatch } from 'react-redux'
import { deleteProject } from '../../actions/projects'
import ProjectActionButtons from '../../components/projects/ProjectActionButtons'

const ProjectActions = (props) => {
    const dispatch = useDispatch()
    const actions = {
        onViewUsers: (id) => {}, // TODO implement user viewing
        onDelete: (id) => dispatch(deleteProject(id)),
    }
    return <ProjectActionButtons {...props} {...actions} />
}

export default ProjectActions