mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 04:06:43 +02:00
Adds the original NestJS backends (backend, audio-backend), Expo mobile app, and Astro landing page as-is from the standalone memoro repo. These are not yet migrated to monorepo standards (migration tracked in memory/CLAUDE.md). Also adds eslint.config.mjs ignore for apps/*/apps/audio-backend/** and .prettierignore entries for legacy memoro dirs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
488 B
TypeScript
18 lines
488 B
TypeScript
import { View } from 'react-native';
|
|
import Icon from '~/components/atoms/Icon';
|
|
|
|
export const TabBarIcon = (props: {
|
|
name: string;
|
|
color: string;
|
|
focused?: boolean;
|
|
size?: number;
|
|
}) => {
|
|
// If focused, use the filled version of the icon by removing '-outline' suffix
|
|
const iconName = props.focused ? props.name.replace('-outline', '') : props.name;
|
|
|
|
return (
|
|
<View className="mb-[-3px]">
|
|
<Icon name={iconName} size={props.size || 28} color={props.color} />
|
|
</View>
|
|
);
|
|
};
|