Add StatusChip component
This commit is contained in:
16
app/src/components/StatusChip.tsx
Normal file
16
app/src/components/StatusChip.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { JSX } from "react";
|
||||
import { Chip } from "heroui-native";
|
||||
import type { StatusColor } from "@/lib/status";
|
||||
|
||||
interface StatusChipProps {
|
||||
label: string;
|
||||
color: StatusColor;
|
||||
}
|
||||
|
||||
export function StatusChip({ label, color }: StatusChipProps): JSX.Element {
|
||||
return (
|
||||
<Chip variant="soft" color={color} size="sm">
|
||||
<Chip.Label>{label}</Chip.Label>
|
||||
</Chip>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user