import React from 'react'; import { ATTACHMENT_OPTIONS } from '../constants'; import { useAppStrings } from '../../../os/useAppStrings'; import { strings } from '../res/strings'; import { stringsEn } from '../res/strings.en'; const smsIcon = (name: string) => name ? `/@app-assets/Sms/icons/${name}.svg` : ''; /** Attachment id → string key mapping */ const ATTACHMENT_LABEL_KEYS: Record = { emoji: 'attachment_emoji', card: 'attachment_card', image: 'attachment_image', photo: 'attachment_photo', favorites: 'attachment_favorites', schedule: 'attachment_schedule', theme: 'attachment_theme', audio: 'attachment_audio', video: 'attachment_video', slideshow: 'attachment_slideshow', }; /** Load SVG icon from assets */ const SmsIcon: React.FC<{ name: string; size?: number; className?: string }> = ({ name, size = 24, className = '', }) => { const iconPath = smsIcon(name); if (!iconPath) return null; return ( {name} ); }; export const AttachmentPanel: React.FC = () => { const s = useAppStrings(strings, stringsEn); return (
{ATTACHMENT_OPTIONS.map((option) => ( ))}
{/* Pagination dots */}
); };