import React from 'react'; import type { StatusIndicatorStateName, StatusIndicatorVariant } from '@shoptet/ui-core-web'; /** The geometric shape drawn per intent. */ export type StatusIndicatorShapeKind = 'circle' | 'diamond' | 'hexagon'; export function shapeForState(state: StatusIndicatorStateName): StatusIndicatorShapeKind { switch (state) { case 'critical': { return 'hexagon'; } case 'warning': { return 'diamond'; } default: { return 'circle'; } } } const GEOMETRY_CLASS = 'status-indicator__geometry'; // Authored in a 20×20 viewBox; `outlined` geometry is `full` inset by 1 unit (half the 2-unit // stroke) so the stroked outer edge matches the `full` contour exactly. export const SHAPE_GEOMETRY: Record> = { full: { hexagon: , diamond: ( ), circle: , }, outlined: { hexagon: ( ), diamond: ( ), circle: , }, };