Created
June 14, 2025 15:50
-
-
Save farisfaikar/5251196009b39cf3974f9f7983f7bd25 to your computer and use it in GitHub Desktop.
Faris Faikar's Motto in Typescript Syntax Extension (TSX)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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