import React from 'react'; import { Pressable } from 'react-native'; import Svg, { Path } from 'react-native-svg'; import { getColor } from './style-utils'; interface CheckProps { checked?: boolean; disabled?: boolean; onPress?: () => void; hitSlop?: number; } const Check = ({ checked = false, disabled = false, onPress, hitSlop = 8, }: CheckProps) => { // 상태에 따른 색상 설정 const getFillColor = () => { if (checked) { return disabled ? 'rgba(16, 185, 129, 0.5)' : getColor('emerald-500'); // 체크 상태 } else { return disabled ? 'rgba(209, 213, 219, 0.5)' : getColor('gray-300'); // 체크 안된 상태 } }; return ( ); }; export default Check;