ConceptPortal-public/rsconcept/frontend/src/features/library/components/IconItemVisibility.tsx
Ivan 3e52639e48
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
R: Refactor feature dependencies
2025-02-26 00:16:41 +03:00

11 lines
391 B
TypeScript

import { type DomIconProps, IconHide, IconShow } from '@/components/Icons';
/** Icon for visibility. */
export function IconItemVisibility({ value, size = '1.25rem', className }: DomIconProps<boolean>) {
if (value) {
return <IconShow size={size} className={className ?? 'text-ok-600'} />;
} else {
return <IconHide size={size} className={className ?? 'text-warn-600'} />;
}
}