-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #681 from contember/feat/add-todo-component
feat(playground): add todo comment component
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { PropsWithChildren } from 'react' | ||
|
||
export interface CommentProps extends PropsWithChildren { | ||
} | ||
|
||
export const Todo = ({ children }: CommentProps) => { | ||
if (!import.meta.env.DEV) return null | ||
|
||
return ( | ||
<div className="bg-yellow-100 p-4"> | ||
<strong>TODO:</strong> {children} | ||
</div> | ||
) | ||
} |
This file contains 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