import { useActionSheet } from '@/components/ui/action-sheet'; import { Button } from '@/components/ui/button'; import { Icon } from '@/components/ui/icon'; import { View } from '@/components/ui/view'; import { Camera, FileText, Image, Mic } from 'lucide-react-native'; import React from 'react'; export function ActionSheetHook() { const { show, ActionSheet } = useActionSheet(); const showMediaOptions = () => { show({ title: 'Add Media', message: 'Choose the type of media to add', options: [ { title: 'Take Photo', onPress: () => console.log('Take photo'), icon: , }, { title: 'Choose from Gallery', onPress: () => console.log('Choose from gallery'), icon: , }, { title: 'Record Audio', onPress: () => console.log('Record audio'), icon: , }, { title: 'Add Document', onPress: () => console.log('Add document'), icon: , }, ], }); }; const showConfirmation = () => { show({ title: 'Confirm Action', message: 'This action cannot be undone', options: [ { title: 'Yes, Continue', onPress: () => console.log('Confirmed'), destructive: true, }, ], }); }; return ( {ActionSheet} ); }