import * as React from 'react' import styled from 'styled-components' import { text, theme, spacingPx } from '@planview/pv-utilities' type CounterProps = { children: React.ReactNode id?: string state?: 'default' | 'warning' | 'error' } const StyledCounter = styled.p<{ $state?: 'default' | 'warning' | 'error' }>` padding: 0; min-width: 0; flex-shrink: 0; ${text.regular}; color: ${(props) => props.$state === 'warning' ? theme.textWarning : props.$state === 'error' ? theme.textError : theme.textSecondary}; margin: 0 0 0 ${spacingPx.small}; ` const Counter: React.FC = ({ children, id, state }) => ( {children} ) export { Counter } export default Counter