{"version":3,"file":"EntityKeyProvider.cjs","sources":["../../../../../packages/react-binding/src/accessorPropagation/EntityKeyProvider.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { EntityKeyContext } from './EntityKeyContext'\nimport { EntityAccessor } from '@contember/binding'\n\nexport interface EntityKeyProviderProps {\n\tentityKey: string | (() => EntityAccessor)\n\tchildren: ReactNode\n}\n\nexport function EntityKeyProvider(props: EntityKeyProviderProps) {\n\treturn <EntityKeyContext.Provider value={props.entityKey}>{props.children}</EntityKeyContext.Provider>\n}\n"],"names":["jsx","EntityKeyContext"],"mappings":";;;;AASO,SAAS,kBAAkB,OAA+B;AACzD,SAAAA,+BAACC,iBAAAA,iBAAiB,UAAjB,EAA0B,OAAO,MAAM,WAAY,gBAAM,UAAS;AAC3E;;"}