mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-02 17:45:07 -05:00
chore(ui): knip
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
import type { TextProps } from '@invoke-ai/ui-library';
|
||||
import { Text } from '@invoke-ai/ui-library';
|
||||
import { useBatchGroupColorToken } from 'features/nodes/hooks/useBatchGroupColorToken';
|
||||
import { memo } from 'react';
|
||||
|
||||
type Props = TextProps & {
|
||||
batchGroupId?: string;
|
||||
};
|
||||
|
||||
export const BatchGroupId = memo(({ batchGroupId, ...rest }: Props) => {
|
||||
const batchGroupColorToken = useBatchGroupColorToken(batchGroupId);
|
||||
|
||||
if (!batchGroupColorToken || !batchGroupId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Text fontWeight="semibold" color={batchGroupColorToken} {...rest}>
|
||||
{batchGroupId}
|
||||
</Text>
|
||||
);
|
||||
});
|
||||
|
||||
BatchGroupId.displayName = 'BatchGroupId';
|
||||
Reference in New Issue
Block a user