This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Liam 08295d7b04
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m21s
make the score improvement text smaller and show a previous pp inaccuracy warning
2024-10-23 08:13:07 +01:00

24 lines
536 B
TypeScript

import { ExclamationTriangleIcon } from "@heroicons/react/24/solid";
import { ReactNode } from "react";
type WarningProps = {
/**
* The size of the warning icon.
*/
size?: number;
/**
* The children to display.
*/
children: ReactNode;
};
export function Warning({ size = 32, children }: WarningProps) {
return (
<div className="flex gap-2 items-center justify-center">
<ExclamationTriangleIcon width={size} height={size} className={`w-[${size}px] h-[${size}px]`} />
{children}
</div>
);
}