2024-06-04 10:57:52 +02:00
|
|
|
import * as React from 'react';
|
|
|
|
import TextButton, { ButtonType, TextButtonProps } from './TextButton';
|
|
|
|
|
|
|
|
type Props = Omit<TextButtonProps, 'type'>;
|
|
|
|
|
|
|
|
const makeTextButtonComponent = (type: ButtonType) => {
|
|
|
|
return (props: Props) => {
|
|
|
|
return <TextButton {...props} type={type} />;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export const PrimaryButton = makeTextButtonComponent(ButtonType.Primary);
|
|
|
|
export const SecondaryButton = makeTextButtonComponent(ButtonType.Secondary);
|
|
|
|
export const LinkButton = makeTextButtonComponent(ButtonType.Link);
|
2024-12-11 14:31:05 +02:00
|
|
|
export const DeleteButton = makeTextButtonComponent(ButtonType.Delete);
|