import React from 'react'; import { View } from 'react-native'; import { BrandLogoPurple, Typo } from '../../foundation'; import { TopNavigationIcon } from './TopNavigationIcon'; import { Button } from '../button/Button'; export type CustomerProps = { mode: 'customer'; isLogin: boolean; // 로그인 여부 onPressBell: () => void; onPressProfile: () => void; showDot: boolean; } & ( | { domain: 'home'; onPressChangeRoleToGosu: () => void; onPressGosuJoin: () => void; } | { domain: 'gosuFind'; } | { domain: 'community'; onPressSearch: () => void; } | { domain: 'chat'; onPressSetting: () => void; } | { domain: 'receivedQuote'; onPressInformation: () => void; } ); /** * 고객 상단 네비게이션 */ export function CustomerTopNavigation(props: CustomerProps) { const { domain, isLogin } = props; const title = getTitle(domain); return ( <> {domain === 'home' ? ( <> ) : ( {title} )} {/* 홈 */} {domain === 'home' && ( <> {isLogin && ( )} {isLogin ? (