puppy-lib-components
Version:
A modern TypeScript React component library with generic UI components and football pickem domain components
6 lines (5 loc) • 724 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Chip, Stack } from '@mui/material';
export const RangePositionIndicator = ({ rangePosition, onRangePositionChange, }) => {
return (_jsxs(Stack, { direction: "row", spacing: 1, justifyContent: "center", children: [_jsx(Chip, { label: "Start Date", color: rangePosition === 'start' ? 'primary' : 'default', variant: rangePosition === 'start' ? 'filled' : 'outlined', onClick: () => onRangePositionChange('start'), size: "small" }), _jsx(Chip, { label: "End Date", color: rangePosition === 'end' ? 'primary' : 'default', variant: rangePosition === 'end' ? 'filled' : 'outlined', onClick: () => onRangePositionChange('end'), size: "small" })] }));
};