Files
mobile-darmasaba/components/alertKonfirmasi.ts
amel f7b8c08f20 upd: profile
Deskripsi:
- ui profile
- ui button right header
- ui alert konfirmasi

No Issues
2025-02-27 12:02:57 +08:00

21 lines
371 B
TypeScript

import { Alert } from "react-native";
type Props = {
title: string,
desc: string
onPress: () => void
}
export default function AlertKonfirmasi({ title, desc, onPress }: Props) {
Alert.alert(title, desc, [
{
text: 'Tidak',
style: 'cancel',
},
{
text: 'Ya',
onPress: () => { onPress() }
},
]);
}