import clsx from 'clsx'; import { motion } from 'framer-motion'; import { animateDropdownItem } from '@/styling/animations'; import { globals } from '@/utils/constants'; import { CProps } from '../props'; interface DropdownButtonProps extends CProps.AnimatedButton { text?: string; icon?: React.ReactNode; children?: React.ReactNode; } function DropdownButton({ text, icon, className, title, titleHtml, hideTitle, onClick, children, ...restProps }: DropdownButtonProps) { return ( {children ? children : null} {!children && icon ? icon : null} {!children && text ? {text} : null} ); } export default DropdownButton;