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AAC","sourcesContent":["import { ComponentType, forwardRef } from 'react';\nimport { StyleSheet, createElement } from 'react-native';\n\nimport { TableTextProps } from '../primitives/Table';\nimport { TextProps } from '../primitives/Text';\nimport { ViewProps } from '../primitives/View';\n\nexport const Table = forwardRef((props: ViewProps, ref) => {\n  return createElement('table', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<ViewProps>;\n\nexport const THead = forwardRef((props: ViewProps, ref) => {\n  return createElement('thead', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<ViewProps>;\n\nexport const TBody = forwardRef((props: ViewProps, ref) => {\n  return createElement('tbody', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<ViewProps>;\n\nexport const TFoot = forwardRef((props: ViewProps, ref) => {\n  return createElement('tfoot', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<ViewProps>;\n\nexport const TH = forwardRef((props: TableTextProps, ref) => {\n  return createElement('th', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<TableTextProps>;\n\nexport const TR = forwardRef((props: ViewProps, ref) => {\n  return createElement('tr', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<ViewProps>;\n\nexport const TD = forwardRef((props: TableTextProps, ref) => {\n  return createElement('td', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<TableTextProps>;\n\nexport const Caption = forwardRef((props: TextProps, ref) => {\n  return createElement('caption', { ...props, style: [styles.reset, props.style], ref });\n}) as ComponentType<TextProps>;\n\nconst styles = StyleSheet.create({\n  reset: {\n    fontFamily: 'System',\n    padding: 0,\n  },\n});\n"]}