managarten/apps-archived/memoro/apps/mobile/components/atoms/Alert.tsx
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

37 lines
1 KiB
TypeScript

import { Alert as RNAlert } from 'react-native';
import { AlertButtonProps, IAlertService } from './alert.types';
/**
* Alert component that wraps React Native's Alert API
* This is the base implementation used by native platforms
*
* Provides a cross-platform alert dialog interface
*
* Example:
* ```tsx
* Alert.alert(
* 'Title',
* 'Message',
* [
* { text: 'Cancel', style: 'cancel' },
* { text: 'OK', onPress: () => console.log('OK Pressed') }
* ]
* );
* ```
*/
class AlertService implements IAlertService {
/**
* Displays an alert dialog with the specified title, message, and buttons
*
* @param title The title of the alert
* @param message The message to display in the alert
* @param buttons Array of buttons to display in the alert
*/
alert(title: string, message?: string, buttons?: AlertButtonProps[]): void {
RNAlert.alert(title, message, buttons);
}
}
// Create and export singleton instance
const alertService = new AlertService();
export default alertService;