meshtastic/src/components/ColorMode.tsx

14 lines
347 B
TypeScript
Raw Normal View History

2023-01-19 04:41:44 -08:00
import React from "react";
2022-04-07 02:59:15 -07:00
export interface ColorModeProps {
2023-09-09 05:16:14 -07:00
children: React.ReactNode;
2022-04-07 02:59:15 -07:00
}
export const Dark = ({ children }: ColorModeProps): JSX.Element => {
2023-09-09 05:16:14 -07:00
return <div className="hideLight">{children}</div>;
2022-04-07 02:59:15 -07:00
};
export const Light = ({ children }: ColorModeProps): JSX.Element => {
2023-09-09 05:16:14 -07:00
return <div className="hideDark">{children}</div>;
2022-04-07 02:59:15 -07:00
};