xref: /expo/docs/ui/components/Home/HomeButton.tsx (revision fc13df4e)
1import { spacing, typography } from '@expo/styleguide';
2import React from 'react';
3
4import { Button, ButtonProps } from '~/ui/components/Button';
5
6export const HomeButton = ({ children, style, href, ...rest }: ButtonProps) => (
7  <Button
8    {...rest}
9    href={href}
10    rel={href?.startsWith('http') ? 'noopener noreferrer' : undefined}
11    style={{
12      ...typography.fontSizes[14],
13      height: 36,
14      paddingLeft: spacing[3.5],
15      paddingRight: spacing[3.5],
16      position: 'absolute',
17      bottom: 28,
18      zIndex: 1,
19      ...style,
20    }}>
21    {children}
22  </Button>
23);
24