@open-tender/ui
Version:
A component library for use with the Open Tender web app
14 lines (13 loc) • 714 B
JavaScript
import { CheckCircle } from 'iconoir-react';
import React from 'react';
import { makeProps } from '../utils';
import Text from './Text';
import View from './View';
const Applied = ({ config, title = 'Applied', size = 24, strokeWidth = 1.5, style }) => {
const titleProps = makeProps(config, 'applied__title', style);
return (React.createElement(View, Object.assign({}, makeProps(config, 'applied')),
React.createElement(View, Object.assign({}, makeProps(config, 'applied__icon')),
React.createElement(CheckCircle, { widths: size, height: size, strokeWidth: strokeWidth })),
React.createElement(Text, Object.assign({}, titleProps, { text: title }))));
};
export default Applied;