import React from 'react'; import { colors } from '../res/colors'; import { useAppStrings } from '../../../os/useAppStrings'; import { strings } from '../res/strings'; import { stringsEn } from '../res/strings.en'; export type ActionSheetItem = { key: string; label: string; danger?: boolean; disabled?: boolean; onClick: () => void; }; export const ActionSheet: React.FC<{ visible: boolean; title?: string; items: ActionSheetItem[]; onClose: () => void; cancelLabel?: string; }> = ({ visible, title, items, onClose, cancelLabel }) => { const s = useAppStrings(strings, stringsEn); const label = cancelLabel ?? s.action_cancel; if (!visible) return null; return (