mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Show file hash
This commit is contained in:
@@ -4,14 +4,16 @@ export default function Badge({
|
||||
children,
|
||||
className,
|
||||
onClick,
|
||||
selectable = false,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
onClick?: () => void;
|
||||
selectable?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<span
|
||||
className={`badge ${!className?.includes("badge-") && "badge-primary"} select-none ${className}`}
|
||||
className={`badge ${!className?.includes("badge-") && "badge-primary"} ${className} ${!selectable && "select-none"}`}
|
||||
onClick={onClick}
|
||||
>
|
||||
{children}
|
||||
|
Reference in New Issue
Block a user