mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 01:06:41 +02:00
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
26 lines
495 B
TypeScript
26 lines
495 B
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { SFSymbol } from './ui/SFSymbol';
|
|
|
|
interface TabBarIconProps {
|
|
sfSymbol: string;
|
|
fallbackIcon: string;
|
|
color: string;
|
|
}
|
|
|
|
export const TabBarIcon = ({ sfSymbol, fallbackIcon, color }: TabBarIconProps) => {
|
|
return (
|
|
<SFSymbol
|
|
name={sfSymbol}
|
|
fallbackIcon={fallbackIcon as any}
|
|
color={color}
|
|
size={24}
|
|
style={styles.tabBarIcon}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export const styles = StyleSheet.create({
|
|
tabBarIcon: {
|
|
marginBottom: -3,
|
|
},
|
|
});
|