Portal/rsconcept/frontend/src/features/ai/components/icon-shared-template.tsx

11 lines
416 B
TypeScript
Raw Normal View History

2025-07-15 13:30:41 +03:00
import { type DomIconProps, IconPrivate, IconPublic } from '@/components/icons';
/** Icon for shared template flag. */
export function IconSharedTemplate({ value, size = '1.25rem', className }: DomIconProps<boolean>) {
if (value) {
2025-07-15 20:09:44 +03:00
return <IconPublic size={size} className={className ?? 'text-constructive'} />;
2025-07-15 13:30:41 +03:00
} else {
return <IconPrivate size={size} className={className ?? 'text-primary'} />;
}
}