mirror of
https://github.com/luxfhe/example-smart-wallet.git
synced 2026-10-30 18:13:16 +00:00
19 lines
540 B
TypeScript
19 lines
540 B
TypeScript
import { HTMLAttributes } from "react";
|
|
|
|
type DeploymentStatusIndicatorProps = {
|
|
isDeployed: boolean;
|
|
showCheckIcon?: boolean;
|
|
};
|
|
|
|
const DeploymentStatusIndicator = ({
|
|
isDeployed,
|
|
className,
|
|
...props
|
|
}: DeploymentStatusIndicatorProps & HTMLAttributes<HTMLDivElement>) => {
|
|
const indicatorBackgroundColor = isDeployed ? "bg-bg-surface-success" : "bg-bg-surface-warning";
|
|
|
|
return <div className={`w-[12px] h-[12px] rounded-full ${indicatorBackgroundColor} ${className}`} {...props} />;
|
|
};
|
|
|
|
export { DeploymentStatusIndicator };
|