import React from 'react' import { RiQuestionLine, } from '@remixicon/react' import Switch from '@/app/components/base/switch' import Tooltip from '@/app/components/base/tooltip' type Props = { icon: any title: any tooltip?: any value: any description?: string children?: React.ReactNode disabled?: boolean onChange?: (state: any) => void onMouseEnter?: () => void onMouseLeave?: () => void } const FeatureCard = ({ icon, title, tooltip, value, description, children, disabled, onChange, onMouseEnter, onMouseLeave, }: Props) => { return (
{icon}
{title} {tooltip && (
)}
onChange?.(state)} defaultValue={value} />
{description && (
{description}
)} {children}
) } export default FeatureCard