mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-26 10:53:56 +00:00
21 lines
502 B
TypeScript
21 lines
502 B
TypeScript
import React from 'react';
|
|
|
|
import { InlineRenameInput } from '../ui/inline-rename-input';
|
|
|
|
type HostTreeGroupInlineRenameInputProps = {
|
|
initialName: string;
|
|
onCommit: (name: string) => boolean | void | Promise<boolean | void>;
|
|
onCancel: () => void;
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
};
|
|
|
|
export const HostTreeGroupInlineRenameInput: React.FC<HostTreeGroupInlineRenameInputProps> = (
|
|
props,
|
|
) => (
|
|
<InlineRenameInput
|
|
data-inline-group-edit="true"
|
|
{...props}
|
|
/>
|
|
);
|