mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-10 16:30:18 +02:00
21 lines
544 B
JavaScript
21 lines
544 B
JavaScript
// React
|
|
import { View, Text, StyleSheet } from 'react-native';
|
|
// Util
|
|
import { secondsToMMSS } from '../util/format';
|
|
|
|
export const TimerMMSS = ({ title, seconds, style }) => {
|
|
return (
|
|
<View style={[styles.container, style]}>
|
|
<Text style={{fontSize: 15}}>{title}</Text>
|
|
<Text style={{fontSize: 30, fontWeight: "bold"}}>{secondsToMMSS(seconds)}</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}
|
|
});
|