mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
d81f5fcfe1
* chore: add new icons package and remove the old one * chore: update and consolidate imports * chore: missed import
22 lines
473 B
TypeScript
22 lines
473 B
TypeScript
import { PropsWithChildren } from 'react';
|
|
import { IoAlertCircle } from 'react-icons/io5';
|
|
|
|
import { cx } from '../../utils/styleUtils';
|
|
|
|
import style from './Info.module.scss';
|
|
|
|
interface InfoProps {
|
|
className?: string;
|
|
}
|
|
|
|
export default function Info(props: PropsWithChildren<InfoProps>) {
|
|
const { className, children } = props;
|
|
|
|
return (
|
|
<div className={cx([style.infoLabel, className])}>
|
|
<IoAlertCircle />
|
|
<div>{children}</div>
|
|
</div>
|
|
);
|
|
}
|