Scrum4Me/lib/debug.ts
Scrum4Me Agent f7a44f85a8 refactor(PBI-49): remove data-debug-label from debugProps helper + test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 21:32:09 +02:00

14 lines
275 B
TypeScript

export type DebugProps = {
'data-debug-id': string
}
export function debugProps(
id: string,
_component?: string,
_file?: string
): DebugProps | Record<string, never> {
if (process.env.NODE_ENV === 'production') return {}
return {
'data-debug-id': id,
}
}