diff --git a/components/Button/index.tsx b/components/Button/index.tsx index 732d6a1e..d59b469e 100644 --- a/components/Button/index.tsx +++ b/components/Button/index.tsx @@ -7,6 +7,11 @@ interface Props extends ButtonHTMLAttributes { bold?: boolean; } +interface ButtonTitleProps { + title: string; + bold?: boolean; +} + export default function Button({ title, description, @@ -15,9 +20,11 @@ export default function Button({ onClick, customStyle, bold, + ...rest }: Props) { return ( ); } + +function ButtonTitle({ title, bold }: ButtonTitleProps) { + return ( +

{title}

+ ); +}