// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React, { forwardRef, HTMLAttributes } from 'react'; import { BaseProps } from '../Base'; import { StyledButton } from './Styled'; export interface ButtonProps extends Omit, 'css'>, BaseProps { icon?: JSX.Element; label: string; variant: ButtonVariant; selected?: boolean; } export type ButtonVariant = 'default' | 'primary' | 'secondary' | 'icon'; export const Button = forwardRef((props: ButtonProps, ref: React.Ref) => ( { props.icon && {props.icon} } {props.label} )); export default Button;