on bbf707a help sign in
26 lines 489 B history raw
1import React from 'react';
2import cn from 'classnames';
4export default function Button({
5 solid = false,
6 className,
7 icon,
8 children,
9 ...rest
10}) {
11 return (
12 <a
13 className={cn(
14 'pointer pv3 pl4 pr0 truncate flex-row justify-between',
15 {
16 'white bg-black bg-gray6-hover': solid,
17 'black bg-gray1-hover': !solid,
18 },
19 className
20 )}
21 {...rest}>
22 {children}
23 <div className="ph4">{icon}</div>
24 </a>
25 );