Abmelde-Icon neben Hell/Dunkel im App-Kopf
This commit is contained in:
1 parent
f881c0afb9
commit
6bdac93521
1 file changed
+21
-2
@@ -41,8 +41,7 @@ function MoonIcon() {
|
||||
);
|
||||
}
|
||||
|
||||
function SunIcon() {
|
||||
return (
|
||||
export function SunIcon() { return (
|
||||
<svg
|
||||
width="20"
|
||||
height="20"
|
||||
@@ -60,6 +59,26 @@ function SunIcon() {
|
||||
);
|
||||
}
|
||||
|
||||
export function LogoutIcon() {
|
||||
return (
|
||||
<svg
|
||||
width="20"
|
||||
height="20"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
|
||||
<path d="M16 17l5-5-5-5" />
|
||||
<path d="M21 12H9" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
export function ThemeToggle({ variant = "text" }: { variant?: "text" | "icon" }) {
|
||||
const [theme, setTheme] = useState<Theme>(() => themePreference());
|
||||
|
||||
|
||||
Reference in new issue
Block a user