# yatra/3.0.13/resources/js/blocks/tour/index.tsx

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.13. 27 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.13/code/resources/js/blocks/tour/index.tsx
- Raw: https://pluginprobe.com/plugins/yatra/3.0.13/raw/resources/js/blocks/tour/index.tsx
- Modified: 2026-04-14T03:47:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.13/code/resources/js/blocks/tour/index.tsx#L10-L20`.

```tsx
import {
  getBlockType,
  registerBlockType,
  unregisterBlockType,
  type BlockConfiguration,
} from "@wordpress/blocks";
import Edit from "./edit";
import blockMetadata from "./block.json";

// Merge full block.json so keywords, supports.inserter, and description stay in sync for the inserter/search.
const {
  $schema: _$schema,
  editorScript: _$editorScript,
  ...metadata
} = blockMetadata;

// If a stale registration exists (no edit / partial merge), replace it so the inserter works.
if (getBlockType(metadata.name)) {
  unregisterBlockType(metadata.name);
}

registerBlockType(metadata.name, {
  ...metadata,
  edit: Edit,
  save: () => null,
} as unknown as BlockConfiguration);

```
