import Translate from "@docusaurus/Translate"

import type { JSX } from "react"

export default function NoExtraItems(): JSX.Element {
  const noExtraItemsLabel = (
    <Translate
      values={{
        id: "json-schema.labels.noExtraItems",
      }}
    >
      {"No extra item(s) are authorized in this array"}
    </Translate>
  )

  return (
    <div key={"no-extra-items"}>
      🚨&nbsp;
      {noExtraItemsLabel}
    </div>
  )
}
