Favicon. Various UI components

This commit is contained in:
unknown
2021-09-21 15:47:46 +02:00
parent b8b0603b3f
commit 952ebb5d3a
9 changed files with 93 additions and 54 deletions

View File

@@ -1,14 +1,12 @@
import { ReactJs } from '@icons-pack/react-simple-icons';
import { Color } from '../../typescript/types';
interface Props {}
interface Props {
text: string;
color: Color;
}
export const Badge = (props: Props): JSX.Element => {
const Icon = require('@icons-pack/react-simple-icons/lib/components/Youtube');
const { text, color } = props;
return (
<span className='badge bg-primary'>
<ReactJs color='#61dafb' size={24} />
New
</span>
);
return <span className={`badge bg-${color}`}>{text}</span>;
};