managarten/apps/memoro/apps/mobile/components/TabBarIcon.tsx
Till JS d8a2b37126 chore(memoro): import legacy backend, mobile, and landing apps
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>
2026-03-31 17:30:00 +02:00

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>
);
};