/*
 * File: CustomIcon.tsx
 * Description: Themed icon component using Clinical Blue Interface design system
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */

import React from 'react';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { Colors } from '../../theme';

interface CustomIconProps {
  name: string;
  size?: number;
  color?: string;
  style?: any;
}

/**
 * CustomIcon component
 * - Uses MaterialCommunityIcons and theme colors
 */
const CustomIcon: React.FC<CustomIconProps> = ({ name, size = 24, color = Colors.primary, style }) => (
  <Icon name={name} size={size} color={color} style={style} />
);

export default CustomIcon;

/*
 * End of File: CustomIcon.tsx
 * Design & Developed by Tech4Biz Solutions
 * Copyright (c) Spurrin Innovations. All rights reserved.
 */ 