mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-24 03:14:30 -05:00
22 lines
512 B
TypeScript
22 lines
512 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
import { SendouButton } from "../elements/Button";
|
|
import { PlusIcon } from "../icons/Plus";
|
|
|
|
export function AddFieldButton({ onClick }: { onClick: () => void }) {
|
|
const { t } = useTranslation(["common"]);
|
|
|
|
return (
|
|
<SendouButton
|
|
icon={<PlusIcon />}
|
|
aria-label="Add form field"
|
|
size="small"
|
|
variant="minimal"
|
|
onPress={onClick}
|
|
className="self-start"
|
|
data-testid="add-field-button"
|
|
>
|
|
{t("common:actions.add")}
|
|
</SendouButton>
|
|
);
|
|
}
|