mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import intl from 'react-intl-universal';
|
|
import { includes } from 'lodash';
|
|
import { Callout, Intent } from '@blueprintjs/core';
|
|
|
|
export const UserFormCalloutAlerts = ({ calloutCodes }) => {
|
|
return [
|
|
includes(calloutCodes, 200) && (
|
|
<Callout icon={null} intent={Intent.DANGER}>
|
|
{intl.get('roles.error.you_cannot_change_your_own_role')}
|
|
</Callout>
|
|
),
|
|
];
|
|
};
|