import React, { ComponentProps } from 'react'; import { Icon, TypoIncludingEmoji } from '../../../foundation'; import { StyleSheet, View } from 'react-native'; /** * Callout 컴포넌트의 구성요소 */ export function Title(props: { title: string; icon: ComponentProps['name']; iconColor: ComponentProps['color']; showButtonIcon: boolean; }) { return ( {props.title} {props.showButtonIcon ? ( ) : null} ); } const style = StyleSheet.create({ container: { flexDirection: 'row', justifyContent: 'space-between', gap: 8 }, iconAndTitleWrapper: { flexDirection: 'row', flexShrink: 1, gap: 8 }, icon: { marginTop: 1 }, titleContainer: { flexShrink: 1 }, buttonIcon: { marginTop: 3 }, });