import * as React from 'react'; import { KakaoSymbolIcon } from './icons/kakao-symbol'; import { AppleSymbolIcon } from './icons/apple-symbol'; import { GoogleSymbolIcon } from './icons/google-symbol'; import Button from './button'; type SocialButtonType = 'kakao' | 'apple' | 'google'; interface SocialButtonPreset { backgroundColor: string; textColor: string; icon: React.ReactNode; text: string; border?: string; } const SOCIAL_PRESETS: Record = { kakao: { backgroundColor: 'yellow-400', textColor: 'black', icon: , text: '카카오톡으로 시작하기', }, apple: { backgroundColor: 'black', textColor: 'white', icon: , text: '애플로 시작하기', }, google: { backgroundColor: 'white', textColor: 'black', icon: , text: '구글로 시작하기', }, }; interface SocialButtonProps { type: SocialButtonType; onPress: () => void; disabled?: boolean; loading?: boolean; className?: string; } export default function SocialButton({ type, onPress, disabled, loading, className, }: SocialButtonProps) { const preset = SOCIAL_PRESETS[type]; return (