assessment-model/src/app/components/Buttons.tsx
Khalim Conn-Kowlessar 7fcb74a2bf Fixing file name issue
2023-05-31 11:08:54 +01:00

20 lines
557 B
TypeScript

import { Dispatch, SetStateAction } from "react";
export function TanButton({
label,
onClick,
}: {
label: string;
onClick: Dispatch<SetStateAction<any>>;
}) {
// General tan colored button
return (
<button
type="button"
className="inline-flex justify-center rounded-md border border-transparent bg-brandtan px-4 py-2 text-sm font-medium text-white hover:bg-hovertan focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2"
onClick={onClick}
>
{label}
</button>
);
}