{"version":3,"file":"component.mjs","names":[],"sources":["../../../src/navigator/navigator-back-button/component.tsx"],"sourcesContent":["import type { ForwardedRef } from 'react';\nimport type { WordPressComponentProps } from '../../context';\nimport { contextConnect } from '../../context';\nimport { View } from '../../view';\nimport { useNavigatorBackButton } from './hook';\nimport type { NavigatorBackButtonProps } from '../types';\n\nfunction UnconnectedNavigatorBackButton(\n\tprops: WordPressComponentProps< NavigatorBackButtonProps, 'button' >,\n\tforwardedRef: ForwardedRef< any >\n) {\n\tconst navigatorBackButtonProps = useNavigatorBackButton( props );\n\n\treturn <View ref={ forwardedRef } { ...navigatorBackButtonProps } />;\n}\n\nexport const NavigatorBackButton = contextConnect(\n\tUnconnectedNavigatorBackButton,\n\t'Navigator.BackButton'\n);\n"],"mappings":";;;;;AAOA,SAAS,+BACR,OACA,cACC;CACD,MAAM,2BAA2B,uBAAwB,KAAM;CAE/D,OAAO,oBAAC,MAAD;EAAM,KAAM;EAAe,GAAK;CAA4B,CAAA;AACpE;AAEA,MAAa,sBAAsB,eAClC,gCACA,sBACD"}