polen
Version:
A framework for delightful GraphQL developer portals
12 lines • 868 B
JavaScript
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
import { Code } from '@radix-ui/themes';
import { ChangeBase } from '../ChangeBase.js';
export const DirectiveLocationOperation = ({ change }) => {
switch (change.type) {
case `DIRECTIVE_LOCATION_ADDED`:
return (_jsxs(ChangeBase, { change: change, children: ["Directive ", _jsxs(Code, { children: ["@", change.meta.directiveName] }), " can now be used on", ' ', _jsx(Code, { children: change.meta.addedDirectiveLocation })] }));
case `DIRECTIVE_LOCATION_REMOVED`:
return (_jsxs(ChangeBase, { change: change, children: ["Directive ", _jsxs(Code, { children: ["@", change.meta.directiveName] }), " can no longer be used on", ' ', _jsx(Code, { children: change.meta.removedDirectiveLocation })] }));
}
};
//# sourceMappingURL=DirectiveLocationOperation.js.map