mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 12:29:03 +01:00
9 lines
368 B
TypeScript
9 lines
368 B
TypeScript
import { apiSubmitAccountNote } from 'mastodon/api/accounts';
|
|
import { createDataLoadingThunk } from 'mastodon/store/typed_functions';
|
|
|
|
export const submitAccountNote = createDataLoadingThunk(
|
|
'account_note/submit',
|
|
({ accountId, note }: { accountId: string; note: string }) =>
|
|
apiSubmitAccountNote(accountId, note),
|
|
(relationship) => ({ relationship }),
|
|
);
|