mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
- remove face restoration entirely - add dropdown for ESRGAN model select - add ad-hoc upscaling graph and workflow
32 lines
913 B
TypeScript
32 lines
913 B
TypeScript
import { Box, Tooltip } from '@chakra-ui/react';
|
|
import { Text } from '@mantine/core';
|
|
import { forwardRef, memo } from 'react';
|
|
|
|
interface ItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
label: string;
|
|
description?: string;
|
|
tooltip?: string;
|
|
disabled?: boolean;
|
|
}
|
|
|
|
const IAIMantineSelectItemWithTooltip = forwardRef<HTMLDivElement, ItemProps>(
|
|
({ label, tooltip, description, disabled, ...others }: ItemProps, ref) => (
|
|
<Tooltip label={tooltip} placement="top" hasArrow openDelay={500}>
|
|
<Box ref={ref} {...others}>
|
|
<Box>
|
|
<Text>{label}</Text>
|
|
{description && (
|
|
<Text size="xs" color="base.600">
|
|
{description}
|
|
</Text>
|
|
)}
|
|
</Box>
|
|
</Box>
|
|
</Tooltip>
|
|
)
|
|
);
|
|
|
|
IAIMantineSelectItemWithTooltip.displayName = 'IAIMantineSelectItemWithTooltip';
|
|
|
|
export default memo(IAIMantineSelectItemWithTooltip);
|