import { type Options } from 'react-native-image-crop-picker';

import { type TMarkdownStyle } from './interfaces';

export const IMAGE_PICKER_CONFIG = {
	cropping: true,
	avoidEmptySpaceAroundImage: false,
	freeStyleCropEnabled: true,
	forceJpg: true,
	includeExif: true
};

export const LIBRARY_PICKER_CONFIG: Options = {
	multiple: true,
	compressVideoPreset: 'Passthrough',
	mediaType: 'any',
	includeExif: true
};

export const VIDEO_PICKER_CONFIG: Options = {
	mediaType: 'video'
};

export const MIN_HEIGHT = 48;
export const MAX_HEIGHT = 200;

export const NO_CANNED_RESPONSES = 'no-canned-responses';

export const MARKDOWN_STYLES: Record<TMarkdownStyle, string> = {
	bold: '*',
	italic: '_',
	strike: '~',
	code: '`',
	'code-block': '```'
};

export const COMPOSER_INPUT_PLACEHOLDER_MAX_LENGTH = 30;
