1 | var __rest = (this && this.__rest) || function (s, e) {
|
2 | var t = {};
|
3 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4 | t[p] = s[p];
|
5 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8 | t[p[i]] = s[p[i]];
|
9 | }
|
10 | return t;
|
11 | };
|
12 | import React from 'react';
|
13 | import { StyleSheet } from 'react-native';
|
14 | import Button from '../buttons/Button';
|
15 | import { withTheme } from '../config';
|
16 | const DialogButton = (_a) => {
|
17 | var { titleStyle } = _a, rest = __rest(_a, ["titleStyle"]);
|
18 | return (<Button style={{ marginLeft: 5 }} titleStyle={StyleSheet.flatten([styles.buttonTitle, titleStyle])} containerStyle={{
|
19 | width: 'auto',
|
20 | }} testID="Dialog__Button" {...rest}/>);
|
21 | };
|
22 | DialogButton.defaultProps = {
|
23 | title: 'ACTION',
|
24 | type: 'clear',
|
25 | };
|
26 | const styles = StyleSheet.create({
|
27 | buttonTitle: {
|
28 | fontSize: 15,
|
29 | fontWeight: '500',
|
30 | },
|
31 | });
|
32 | export default withTheme(DialogButton, 'DialogButton');
|
33 |
|
\ | No newline at end of file |