import type { GraphqlChange } from '#lib/graphql-change/index'
import { Code } from '@radix-ui/themes'
import type React from 'react'
import { ChangeBase } from '../ChangeBase.js'
export const DirectiveLocationOperation: React.FC<{ change: GraphqlChange.Group.DirectiveLocationOperation }> = (
{ change },
) => {
switch (change.type) {
case `DIRECTIVE_LOCATION_ADDED`:
return (
Directive @{change.meta.directiveName} can now be used on{' '}
{change.meta.addedDirectiveLocation}
)
case `DIRECTIVE_LOCATION_REMOVED`:
return (
Directive @{change.meta.directiveName} can no longer be used on{' '}
{change.meta.removedDirectiveLocation}
)
}
}