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

11 lines
411 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) {
return <IconPublic size={size} className={className ?? 'text-primary'} />;
} else {
return <IconPrivate size={size} className={className ?? 'text-primary'} />;
}
}