{"ast":null,"code":"import React from \"react\";\nimport View from \"react-native-web/dist/exports/View\";\nimport Text from \"react-native-web/dist/exports/Text\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport { useSafeAreaInsets } from \"react-native-safe-area-context\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function TopBar() {\n var insets = useSafeAreaInsets();\n var statusBarHeight = insets.top;\n return _jsx(View, {\n style: {\n width: '100%',\n backgroundColor: '#E9967A',\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-evenly',\n marginTop: statusBarHeight\n },\n children: _jsx(Text, {\n style: TopBarStyle.title,\n children: \"La Super M\\xE9t\\xE9o\"\n })\n });\n}\nvar TopBarStyle = StyleSheet.create({\n title: {\n fontSize: 30,\n fontWeigh: 'bold',\n color: '#B6D0E2'\n }\n});","map":{"version":3,"names":["React","useSafeAreaInsets","TopBar","insets","statusBarHeight","top","width","backgroundColor","alignItems","flexDirection","justifyContent","marginTop","TopBarStyle","title","StyleSheet","create","fontSize","fontWeigh","color"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/components/TopBar.tsx"],"sourcesContent":["import React from \"react\"\nimport { View, Text, StyleSheet, Platform } from \"react-native\";\nimport { useSafeAreaInsets } from \"react-native-safe-area-context\";\n/*\nimport { getStatusBarHeight } from 'react-native-status-bar-height';\n\n\nfunction topBarTopDistance(){\n if(Platform.OS === 'ios'){\n return{\n paddingTop : getStatusBarHeight(),\n paddingBottom : getStatusBarHeight()/2.5,\n }\n }\n return{\n paddingTop : 20,\n flex: 0.15,\n }\n}\n*/\n\nexport function TopBar(){\nconst insets = useSafeAreaInsets();\nconst statusBarHeight = insets.top;\n return (\n \n La Super Météo\n \n );\n}\n\nconst TopBarStyle = StyleSheet.create({\n title : {\n fontSize : 30,\n fontWeigh : 'bold',\n color : '#B6D0E2'\n }\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAAA;AAAA;AAAA;AAEzB,SAASC,iBAAiB,QAAQ,gCAAgC;AAAC;AAmBnE,OAAO,SAASC,MAAM,GAAE;EACxB,IAAMC,MAAM,GAAGF,iBAAiB,EAAE;EAClC,IAAMG,eAAe,GAAGD,MAAM,CAACE,GAAG;EAC9B,OACI,KAAC,IAAI;IAAC,KAAK,EAAE;MAACC,KAAK,EAAG,MAAM;MAC5BC,eAAe,EAAG,SAAS;MAC3BC,UAAU,EAAG,QAAQ;MACrBC,aAAa,EAAG,KAAK;MACrBC,cAAc,EAAG,cAAc;MAC/BC,SAAS,EAAGP;IAAe,CAAE;IAAA,UACzB,KAAC,IAAI;MAAC,KAAK,EAAEQ,WAAW,CAACC,KAAM;MAAA,UAAC;IAAc;EAAO,EAClD;AAEf;AAEA,IAAMD,WAAW,GAAGE,UAAU,CAACC,MAAM,CAAC;EAClCF,KAAK,EAAG;IACJG,QAAQ,EAAG,EAAE;IACbC,SAAS,EAAG,MAAM;IAClBC,KAAK,EAAG;EACZ;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module"}