import { Entities } from 'soapbox/entity-store/entities'; import { useEntityActions } from 'soapbox/entity-store/hooks'; import type { Group } from 'soapbox/schemas'; function useDeleteGroup() { const { deleteEntity, isLoading } = useEntityActions( [Entities.GROUPS], { delete: '/api/v1/groups/:id' }, ); return { mutate: deleteEntity, isLoading, }; } export { useDeleteGroup };