import { ReactNode, useState } from 'react'; import { FunctionBadgeContext } from '../../context'; import styles from './styles.module.scss'; export type FunctionBadgeWrapperProps = { children: ReactNode; className?: string; alwaysVisible?: boolean; }; export function FunctionBadgeWrapper({ children, className, alwaysVisible }: FunctionBadgeWrapperProps) { const [visible, setVisible] = useState(false); const show = alwaysVisible ? true : visible; return (
{children}
); }