import React, { ComponentProps, ReactNode } from 'react' import { StyleSheet, View } from 'react-native' import { useTheme } from '../../../hooks' import { tokens } from '../../../vendor/tapestry/tokens' import { Text } from '../../display' type AttachmentCardProps = ComponentProps export function AttachmentCard({ children, ...props }: AttachmentCardProps) { const styles = useStyles() return ( {children} ) } export function AttachmentCardTitle({ children }: { children: ReactNode }) { const styles = useStyles() return ( {children} ) } const useStyles = () => { const { colors } = useTheme() return StyleSheet.create({ card: { padding: 8, backgroundColor: colors.surfaceColor100, borderRadius: 8, minWidth: '100%', minHeight: 60, justifyContent: 'center', position: 'relative', }, title: { color: colors.textColorDefaultPrimary, fontSize: tokens.fontSizeSm, flex: 1, }, }) }