mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-02 13:03:13 +00:00
22 lines
440 B
TypeScript
22 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>
|
||
|
|
);
|
||
|
|
}
|