mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
17 lines
501 B
TypeScript
17 lines
501 B
TypeScript
import { mdiChevronLeft, mdiChevronRight } from "@mdi/js";
|
|
import { customElement, property } from "lit/decorators";
|
|
import { mainWindow } from "../common/dom/get_main_window";
|
|
import { HaSvgIcon } from "./ha-svg-icon";
|
|
|
|
@customElement("ha-icon-next")
|
|
export class HaIconNext extends HaSvgIcon {
|
|
@property() public override path =
|
|
mainWindow.document.dir === "rtl" ? mdiChevronLeft : mdiChevronRight;
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"ha-icon-next": HaIconNext;
|
|
}
|
|
}
|