import { messages } from '../../shared/gettext'; import { Button, IconButton, IconButtonProps } from '../lib/components'; import { useBoolean } from '../lib/utility-hooks'; import { ModalAlert, ModalAlertType } from './Modal'; export interface InfoButtonProps extends Omit { title?: string; message?: string | Array; children?: React.ReactNode; } export default function InfoButton({ title, message, children, ...props }: InfoButtonProps) { const [isOpen, show, hide] = useBoolean(false); return ( <> {messages.gettext('Got it!')} , ]} close={hide}> {children} ); }