import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import UITideAtom, { UITideAtomProps } from './UITideAtom'; import UISwitchControlAtom, { UISwitchControlAtomProps } from './UISwitchControlAtom'; export type UISwitchTideMoleculeProps = Omit< UISwitchControlAtomProps, 'style' > & { style?: StyleProp; leftIconName: UITideAtomProps['leftIconName']; label: string; }; export default function UISwitchTideMolecule({ style, label, leftIconName, ...switchProps }: UISwitchTideMoleculeProps) { const right = () => ; const onPress = () => { switchProps.onValueChange?.(!switchProps.value); }; return ( ); }