mirror of
https://github.com/pawelmalak/snippet-box.git
synced 2025-12-24 06:28:07 +01:00
Favicon. Various UI components
This commit is contained in:
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user