2020-07-07 10:14:12 +00:00
|
|
|
import { StaffErrorFragment } from "@saleor/fragments/types/StaffErrorFragment";
|
2020-05-14 09:30:32 +00:00
|
|
|
import { IntlShape } from "react-intl";
|
|
|
|
|
2020-04-20 11:11:07 +00:00
|
|
|
import getAccountErrorMessage from "./account";
|
|
|
|
|
|
|
|
function getStaffErrorMessage(
|
|
|
|
err: StaffErrorFragment,
|
|
|
|
intl: IntlShape
|
|
|
|
): string {
|
2021-12-17 11:10:54 +00:00
|
|
|
return getAccountErrorMessage(err, intl);
|
2020-04-20 11:11:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default getStaffErrorMessage;
|