14 lines
338 B
TypeScript
14 lines
338 B
TypeScript
import type { BlockType } from '../adf/block-nodes.ts'
|
|
|
|
const argumentByType = new Map(
|
|
Object.entries({
|
|
blockTaskItem: 'state',
|
|
panel: 'panelType',
|
|
taskItem: 'state',
|
|
} satisfies Partial<Record<BlockType, string>>),
|
|
)
|
|
|
|
export function blockArgument(type: string): string | undefined {
|
|
return argumentByType.get(type)
|
|
}
|