jiti-meet/react/features/mobile/navigation/components/welcome/functions.js

24 lines
523 B
JavaScript
Raw Normal View History

// @flow
import React from 'react';
2022-01-25 12:55:57 +00:00
import { IconArrowBack } from '../../../../base/icons';
import HeaderNavigationButton
2022-01-25 12:55:57 +00:00
from '../HeaderNavigationButton';
/**
* Render header arrow back button for navigation.
*
* @param {Function} onPress - Callback for when the button is pressed
* function.
* @returns {ReactElement}
*/
export function renderArrowBackButton(onPress: Function) {
return (
<HeaderNavigationButton
onPress = { onPress }
src = { IconArrowBack } />
);
}