quivr/frontend/lib/components/ui/Chip.tsx
Mamadou DICKO 1593c3342c
feat: display brain status on settings page (#1221)
* feat: update GET/brains return status

* feat: add public tag on brain list

* feat: add public tag for public brain on brain settings tab

* feat: hide over tab when brain access is public
2023-09-20 16:24:56 +02:00

23 lines
425 B
TypeScript

import { HTMLProps } from "react";
import { cn } from "@/lib/utils";
export const Chip = ({
label,
children,
className,
...restProps
}: HTMLProps<HTMLSpanElement>): JSX.Element => {
return (
<span
className={cn(
"px-2 bg-gray-400 text-black rounded-xl text-sm flex items-center justify-center",
className
)}
{...restProps}
>
{label ?? children}
</span>
);
};