All files / src/components/DatePicker StubButton.tsx

66.66% Statements 2/3
100% Branches 0/0
0% Functions 0/1
66.66% Lines 2/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23              9x                   9x          
import {Icon} from '@gravity-ui/uikit';
import type {ButtonSize, IconData} from '@gravity-ui/uikit';
 
import {block} from '../../utils/cn';
 
import './StubButton.scss';
 
const b = block('stub-button');
 
interface StubButtonProps {
    size?: ButtonSize;
    icon: IconData;
}
export function StubButton({size, icon}: StubButtonProps) {
    return (
        <span className={b({size})}>
            <span className={b('icon')}>
                <Icon data={icon} />
            </span>
        </span>
    );
}