# getPrimarySectionForBlock()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getPrimarySectionForBlock()

> **getPrimarySectionForBlock**(`blockName`): [`SectionContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/SectionContract/index.md) \| `undefined`

Defined in: [core/src/section-registry.ts:249](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/section-registry.ts#L249)

## Parameters

### blockName

`string`

## Returns

[`SectionContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/SectionContract/index.md) \| `undefined`