import React from 'react'; import styled, { css } from 'styled-components'; import { colors } from '../../../../constants'; import Button, { ButtonProps } from '../../../atoms/Button/Button'; import { useTabsContext } from '../hooks/useTabsContext'; export interface TabButtonProps extends ButtonProps { title: string; tabId: string; afterOnClick?: () => void; } interface StyledButtonProps { activeTab: string; tabId: string; } // This wrapper is to prevent html attribute warnings. See: https://styled-components.com/docs/faqs#why-am-i-getting-html-attribute-warnings const ButtonWrapper = ({ activeTab, tabId, ...props }: StyledButtonProps & ButtonProps) => (