mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-01 01:13:14 +00:00
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.
21 lines
440 B
TypeScript
21 lines
440 B
TypeScript
import React from 'react';
|
|
import { Chip } from 'react-native-paper';
|
|
import { priorityColors } from '../theme';
|
|
|
|
interface Props {
|
|
priority: string;
|
|
}
|
|
|
|
export function PriorityChip({ priority }: Props) {
|
|
const color = priorityColors[priority] || '#757575';
|
|
return (
|
|
<Chip
|
|
mode="outlined"
|
|
compact
|
|
style={{ borderColor: color }}
|
|
textStyle={{ color, fontSize: 12 }}
|
|
>
|
|
{priority}
|
|
</Chip>
|
|
);
|
|
}
|