(props: {isDisabled?: boolean})
| 469 | } |
| 470 | |
| 471 | export function FieldErrorIcon(props: {isDisabled?: boolean}): ReactNode { |
| 472 | return ( |
| 473 | <Provider |
| 474 | values={[ |
| 475 | [ |
| 476 | IconContext, |
| 477 | { |
| 478 | render: centerBaseline({ |
| 479 | slot: 'icon', |
| 480 | styles: style({ |
| 481 | order: 0, |
| 482 | flexShrink: 0, |
| 483 | '--iconPrimary': { |
| 484 | type: 'fill', |
| 485 | value: { |
| 486 | default: 'negative', |
| 487 | forcedColors: 'Mark' |
| 488 | } |
| 489 | } |
| 490 | }) |
| 491 | }), |
| 492 | styles: style({ |
| 493 | size: '1lh', |
| 494 | marginStart: 'text-to-visual', |
| 495 | marginEnd: fontRelative(-2), |
| 496 | flexShrink: 0 |
| 497 | }) |
| 498 | } |
| 499 | ] |
| 500 | ]}> |
| 501 | {!props.isDisabled && <AlertIcon />} |
| 502 | </Provider> |
| 503 | ); |
| 504 | } |
nothing calls this directly
no test coverage detected