mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: sarendsen <coding-mosses0z@icloud.com> Co-authored-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
17 lines
441 B
TypeScript
17 lines
441 B
TypeScript
import { useSettings } from "@/utils/atoms/settings";
|
|
import { Home } from "../../../../components/home/Home";
|
|
import { HomeWithCarousel } from "../../../../components/home/HomeWithCarousel";
|
|
|
|
const Index = () => {
|
|
const { settings } = useSettings();
|
|
const showLargeHomeCarousel = settings.showLargeHomeCarousel ?? false;
|
|
|
|
if (showLargeHomeCarousel) {
|
|
return <HomeWithCarousel />;
|
|
}
|
|
|
|
return <Home />;
|
|
};
|
|
|
|
export default Index;
|