function ThirdpartyActions({ thirdparty }) { const { update, remove } = useSyncClient({ apiUrl: '/api/smartauth', getAccessToken: () => localStorage.getItem('access_token'), scope: ['thirdparty'] }); const handleUpdate = async () => { await update('thirdparty', thirdparty.id, { name: 'Nouveau nom' }); }; const handleDelete = async () => { await remove('thirdparty', thirdparty.id); }; return (
); }