/[sudobot]/trunk/docs/components/MDX/Modes.tsx
ViewVC logotype

Annotation of /trunk/docs/components/MDX/Modes.tsx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (hide annotations)
Mon Jul 29 17:59:26 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 845 byte(s)
chore: add trunk
1 rakinar2 575 import { MdCheck, MdClose } from "react-icons/md";
2    
3     type ModesProps = {
4     modes: Array<"legacy" | "interaction">;
5     };
6    
7     export default function Modes({ modes }: ModesProps) {
8     return (
9     <div>
10     <div className="flex items-center gap-2">
11     {modes.includes("legacy") ? (
12     <MdCheck className="text-green-500" />
13     ) : (
14     <MdClose className="text-red-500" />
15     )}{" "}
16     Legacy
17     </div>
18     <div className="flex items-center gap-2">
19     {modes.includes("interaction") ? (
20     <MdCheck className="text-green-500" />
21     ) : (
22     <MdClose className="text-red-500" />
23     )}{" "}
24     Interactions
25     </div>
26     </div>
27     );
28     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26