import { ViewStyle } from 'react-native';

import { PresetNames } from './icon.presets';
import { PaackIcons } from './PaackIcon';

export interface IconProps {
  /**
   * The color for the icon.
   */
  color?: string;
  /**
   * The name of the icon.
   */
  name: PaackIcons;
  /**
   * Callback function when the icon is pressed.
   */
  onPress?: () => void;
  /**
   * One of the different types of presets.
   */
  preset?: PresetNames;
  /**
   * Icon size.
   */
  size: number;
  /**
   * Style overrides for the icon container.
   */
  style?: ViewStyle;
}

export type IconType = {
  color: string;
  name: PaackIcons;
  size: number;
};
