diff --git a/packages/fields/README.md b/packages/fields/README.md index 27e55ddf720768..346c1fc512256e 100644 --- a/packages/fields/README.md +++ b/packages/fields/README.md @@ -68,7 +68,11 @@ Undocumented declaration. ### duplicateTemplatePart -Undocumented declaration. +This action is used to duplicate a template part. + +_Type_ + +- `Action< TemplatePart >` ### exportPattern diff --git a/packages/fields/src/actions/duplicate-template-part.tsx b/packages/fields/src/actions/duplicate-template-part.tsx index d48efa89119d8a..914ab0bf9cf99d 100644 --- a/packages/fields/src/actions/duplicate-template-part.tsx +++ b/packages/fields/src/actions/duplicate-template-part.tsx @@ -16,6 +16,9 @@ import type { TemplatePart } from '../types'; import { CreateTemplatePartModalContents } from '../components/create-template-part-modal'; import { getItemTitle } from './utils'; +/** + * This action is used to duplicate a template part. + */ const duplicateTemplatePart: Action< TemplatePart > = { id: 'duplicate-template-part', label: _x( 'Duplicate', 'action label' ),