import { useAppTranslation } from '@features/localization/renderer'; import { Ban, Paperclip } from 'lucide-react'; interface DropZoneOverlayProps { active: boolean; /** Show a "rejected" variant when files can't be sent to this recipient. */ rejected?: boolean; /** Custom rejection message. Defaults to generic restriction text. */ rejectionReason?: string; } export const DropZoneOverlay = ({ active, rejected, rejectionReason, }: DropZoneOverlayProps): React.JSX.Element | null => { const { t } = useAppTranslation('team'); if (!active) return null; if (rejected) { return (
{rejectionReason ?? 'Files can only be sent to the team lead'}
); } return (
{t('taskAttachments.dropFilesHere')}
); };