import cn from 'clsx' import s from './FeatureBar.module.css' interface FeatureBarProps { className?: string title: string description?: string hide?: boolean action?: React.ReactNode } const FeatureBar: React.FC = ({ title, description, className, action, hide, }) => { const rootClassName = cn( s.root, { transform: true, 'translate-y-0 opacity-100': !hide, 'translate-y-full opacity-0': hide, }, className ) return (
{title} {description} {action && action}
) } export default FeatureBar