-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21d9bbb
commit cadc8ac
Showing
4 changed files
with
94 additions
and
62 deletions.
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
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
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
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,28 @@ | ||
import "./AppCard.css"; | ||
|
||
import React from "react"; | ||
import { Badge } from "react-bootstrap"; | ||
|
||
type Props = { | ||
isPublic?: boolean; | ||
}; | ||
|
||
function AppVisibilityBadge({ isPublic }: Props) { | ||
return ( | ||
<Badge pill bg="secondary"> | ||
{isPublic ? ( | ||
<span className="d-inline-flex gap-1"> | ||
<i className="bi bi-share-fill"></i> | ||
public | ||
</span> | ||
) : ( | ||
<span className="d-inline-flex gap-1"> | ||
<i className="bi bi-shield-shaded"></i> | ||
private | ||
</span> | ||
)} | ||
</Badge> | ||
); | ||
} | ||
|
||
export default AppVisibilityBadge; |