# yatra/3.0.4/resources/js/blocks/activity/index.tsx

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.4. 25 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.4/code/resources/js/blocks/activity/index.tsx
- Raw: https://pluginprobe.com/plugins/yatra/3.0.4/raw/resources/js/blocks/activity/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.4/code/resources/js/blocks/activity/index.tsx#L10-L20`.

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

const {
  $schema: _$schema,
  editorScript: _$editorScript,
  ...metadata
} = blockMetadata;

if (getBlockType(metadata.name)) {
  unregisterBlockType(metadata.name);
}

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

```
