import { useContext } from 'react';
import { ThemeContext } from '../../styles/theme';
import { Props } from './types';
import { StyledLink, StyledButton } from './styles';
const MDXButton = ({
variant = 'text',
type = 'button',
link,
target,
children,
disabled,
className
}: Props) => {
const { mode } = useContext(ThemeContext);
return link ? (
{children}
) : (
{children}
);
};
export default MDXButton;