import cx from 'classnames'; import React from 'react'; import Flex from '../../helpers/components/Flex/Flex'; import { ElementContent, withStaticProps } from '../../types'; import { TipTypes } from './tipConstants'; import styles from './tip.module.scss'; interface TipProps { children: ElementContent; title?: string; type?: TipTypes; emoji?: string; } const Tip: React.FC & { types?: typeof TipTypes; } = ({ title = 'Tip', children, emoji = '🤓', type = TipTypes.DARK }) => { return (
{emoji} {title}
{children}
); }; export default withStaticProps(Tip, { types: TipTypes, });