import styled from 'styled-components';
import { colors } from '../../config.json';
import { messages } from '../../shared/gettext';
import { useBoolean } from '../lib/utilityHooks';
import * as AppButton from './AppButton';
import ImageView from './ImageView';
import { ModalAlert, ModalAlertType } from './Modal';
const StyledInfoButton = styled.button({
margin: '0 16px 0 0',
borderWidth: 0,
padding: 0,
cursor: 'default',
backgroundColor: 'transparent',
});
interface IInfoIconProps {
className?: string;
size?: number;
}
export function InfoIcon(props: IInfoIconProps) {
return (
);
}
interface IInfoButtonProps extends React.HTMLAttributes {
message?: string;
children?: React.ReactNode;
}
export default function InfoButton(props: IInfoButtonProps) {
const { message, children, ...otherProps } = props;
const [isOpen, show, hide] = useBoolean(false);
return (
<>
{messages.gettext('Got it!')}
,
]}
close={hide}>
{props.children}
>
);
}