Files
frontend/components/organisms/manager/StatusBadge.tsx
T
TaNguyenThanhQuy c2afb3d3b5
Release package / release (push) Successful in 7m28s
fix: connect services to backend (#37)
Co-authored-by: Thanh Quy - wolf <524H0124@student.tdtu.edu.vn>
Reviewed-on: #37
Co-authored-by: TaNguyenThanhQuy <tanguyenthanhquy@noreply.localhost>
Co-committed-by: TaNguyenThanhQuy <tanguyenthanhquy@noreply.localhost>
2026-05-05 14:42:13 +00:00

21 lines
577 B
TypeScript

import type { StatusBadgeProps } from "./Manager.types";
export default function StatusBadge({ available }: StatusBadgeProps) {
return (
<span
className={`inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium ${
available
? "bg-emerald-100 text-emerald-700"
: "bg-amber-100 text-amber-700"
}`}
>
<span
className={`h-1.5 w-1.5 rounded-full ${
available ? "bg-emerald-500" : "bg-amber-500"
}`}
/>
{available ? "In stock" : "Out of stock"}
</span>
);
}