Portal/rsconcept/frontend/src/features/library/components/icon-item-visibility.tsx

11 lines
392 B
TypeScript
Raw Normal View History

2025-03-12 11:54:32 +03:00
import { type DomIconProps, IconHide, IconShow } from '@/components/icons1';
2025-02-26 00:16:22 +03:00
/** 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'} />;
}
}