mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 16:29:40 +02:00
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>
37 lines
1 KiB
TypeScript
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;
|