mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 06:39:02 +02:00
ce4ca192ee
GitOrigin-RevId: 9f51624bc2b34b6746d1854969173b44c9c9cf9a
10 lines
297 B
TypeScript
10 lines
297 B
TypeScript
export function ciamIcon(type: 'error' | 'info', className?: string) {
|
|
const elName = type === 'error' ? 'ph-warning-circle' : 'ph-info'
|
|
const icon = document.createElement(elName) as HTMLElement
|
|
if (className) {
|
|
icon.className = className
|
|
}
|
|
icon.ariaHidden = 'true'
|
|
return icon
|
|
}
|