mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
16 lines
387 B
TypeScript
16 lines
387 B
TypeScript
import PermissionButton, {
|
|
IPermissionButtonProps,
|
|
} from '../PermissionButton/PermissionButton';
|
|
|
|
interface ICreateButtonProps extends IPermissionButtonProps {
|
|
name: string;
|
|
}
|
|
|
|
export const CreateButton = ({ name, ...rest }: ICreateButtonProps) => {
|
|
return (
|
|
<PermissionButton type="submit" {...rest}>
|
|
Create {name}
|
|
</PermissionButton>
|
|
);
|
|
};
|