Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

768 B
Raw Blame
import { Pressable, StyleSheet, Text } from 'react-native';

import { createStyles, useTheme } from '@/theme';

const useStyles = createStyles((token) => ({
  label: { color: token.colorTextLightSolid, fontFamily: 'PingFang SC', fontSize: token.fontSize },
}));

const styles = StyleSheet.create({
  root: { alignItems: 'center', borderRadius: 8, outline: 'none', paddingHorizontal: 16, paddingVertical: 8 },
});

export const Button = ({ children, onPress }: { children: string; onPress?: () => void }) => {
  const theme = useTheme();
  const s = useStyles();
  return (
    <Pressable accessibilityRole="button" onPress={onPress} style={[styles.root, { backgroundColor: theme.colorPrimary }]}>
      <Text style={s.label}>{children}</Text>
    </Pressable>
  );
};