import { type FC, type ReactNode } from 'react'; import styles from './Notice.module.css'; import { type IconName } from '@gw2treasures/icons'; import { cx } from '../../lib'; import { Icon } from '../../icons'; import type { RefProp } from '../../lib/react'; export interface NoticeProps extends RefProp { children: ReactNode, type?: 'info' | 'warning' | 'error', icon?: IconName, /** Hide this Notice from google and other search engines */ index?: boolean, } export const Notice: FC = ({ ref, children, type = 'info', icon, index }) => { return (
{icon && }
{children}
); };