import i18next from '@config/i18n';
import {SHARED_STRINGS} from '@shared/strings';
import {OptionsDialogItem} from '@modules/app/interfaces';

export const getDialogOptions = (
  photo: OptionsDialogItem['onPress'],
  gallery: OptionsDialogItem['onPress'],
) =>
  [
    {
      text: i18next.t(SHARED_STRINGS.TAKE_PICTURE),
      onPress: photo,
      logo: 'photoCamera',
    },
    {
      text: i18next.t(SHARED_STRINGS.GALLERY),
      onPress: gallery,
      logo: 'image',
    },
  ] as OptionsDialogItem[];
