import { type Icon, IconTypes } from 'src/types/icons';

export const formatOutgoingIcon = (icon: Icon) => ({
  type: icon.type,
  value: icon.type === IconTypes.IMAGE ? icon.value.split('?')[0] : icon.value,
});
