import cx from 'classnames'
import styles from './RestCodeSamples.module.scss'
type RestMethodT = {
verb: string
requestPath: string
}
export function RestMethod({ verb, requestPath }: RestMethodT) {
// If the path is long, we want to break it up into multiple lines,
// breaking before the / character.
const displayPath =
requestPath.length > 25
? requestPath.replaceAll('/', '