import { styled } from 'styled-components'; import { View } from '../view'; type ButtonProps = { title: React.ReactNode; icon?: React.ReactNode; onClick?: () => void; }; const ButtonWrapper = styled(View)` background-color: ${({ theme }) => theme.colors.bg.highlight}; display: inline-flex; `; const Button: React.FC = ({ title, onClick, icon }) => { return ( {icon} {title} ); }; export { Button };