import { Stack, Text } from "@fluentui/react"; import React from "react"; import { KeyCodes } from "../../Common/Constants"; interface SplashScreenButtonProps { imgSrc: string; title: string; description: string; onClick: () => void; } export const SplashScreenButton: React.FC = ({ imgSrc, title, description, onClick, }: SplashScreenButtonProps): JSX.Element => { return ( { if (event.charCode === KeyCodes.Space || event.charCode === KeyCodes.Enter) { onClick(); event.stopPropagation(); } }} tabIndex={0} role="button" >
{title} {description}
); };