Skip to content

Instantly share code, notes, and snippets.

@farisfaikar
Created June 14, 2025 15:50
Show Gist options
  • Select an option

  • Save farisfaikar/5251196009b39cf3974f9f7983f7bd25 to your computer and use it in GitHub Desktop.

Select an option

Save farisfaikar/5251196009b39cf3974f9f7983f7bd25 to your computer and use it in GitHub Desktop.
Faris Faikar's Motto in Typescript Syntax Extension (TSX)
import clsx from "clsx";
export default function FarisFaikar({ isDarkModeLover = true }: { isDarkModeLover: boolean }): React.ReactNode {
const sendMessage = (sixMinutes: string, sixHours: string) => {
return (`Never spend ${sixMinutes} doing something by hand ` +
`when you can spend ${sixHours} failing to automate it`);
};
return (
<div className={clsx(
"flex justify-center items-center text-center",
isDarkModeLover ? "text-white bg-black" : "text-blue-600 bg-white",
)}
>
{sendMessage("6 minutes", "6 hours")}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment