proposal-system/mobile/src/components/StatusChip.tsx
Adam Moussa 9aef2a3891 Add mobile navigation, components, and all screens
Role-based bottom-tab navigation (dispatcher dashboard, admin workspace),
shared components (StatusChip, PriorityChip, ProposalCard, LineItemRow,
FilePickerButton, EmptyState), dispatcher screens (dashboard, new proposal
with camera/document picker and offline drafts, proposal detail), admin
screens (dashboard with stats, proposal queue, workspace with approve/
regenerate/PDF, line item editor), login, and settings.
2026-05-17 15:09:43 -04:00

29 lines
632 B
TypeScript

import React from 'react';
import { Chip } from 'react-native-paper';
import { statusColors } from '../theme';
interface Props {
status: string;
}
const statusLabels: Record<string, string> = {
Draft: 'Draft',
InReview: 'In Review',
Approved: 'Approved',
Sent: 'Sent',
Revised: 'Revised',
};
export function StatusChip({ status }: Props) {
const color = statusColors[status] || '#9E9E9E';
return (
<Chip
mode="flat"
compact
style={{ backgroundColor: color + '20' }}
textStyle={{ color, fontSize: 12, fontWeight: '600' }}
>
{statusLabels[status] || status}
</Chip>
);
}