import cls from 'classnames'; import { type LucideIcon } from 'lucide-react'; import { type ReactNode } from 'react'; import IconSpinner from './IconSpinner'; type Props = { active?: boolean; loading?: boolean; disabled?: boolean; size?: number; className?: cls.Value; style?: React.CSSProperties; } & ( | { type: 'submit'; onClick?: never } | { type?: never; onClick: () => void } ) & ( | { children: ReactNode; icon?: LucideIcon; title?: never } | { children?: never; icon: LucideIcon; title: string } ); const TextButton = ({ title, type, active, loading, disabled, icon: Icon, size, onClick, className, children, ...props }: Props) => ( ); export default TextButton;