blob: 629857423157bacdd024bcaf8a78e2ee2dd296a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import React from 'react'
import ProjectActionButtons from '../../components/projects/ProjectActionButtons'
import { useMutation } from 'react-query'
const ProjectActions = (props) => {
const { mutate: deleteProject } = useMutation('deleteProject')
const actions = {
onViewUsers: (id) => {}, // TODO implement user viewing
onDelete: (id) => deleteProject(id),
}
return <ProjectActionButtons {...props} {...actions} />
}
export default ProjectActions
|