silverwolf-x's picture
download
raw
539 Bytes
"use client";
import React from "react";
import { Page } from "../../payload-types";
import { HighImpactHero } from "./HighImpact";
import { MediumImpactHero } from "./MediumImpact";
import { LowImpactHero } from "./LowImpact";
const heroes = {
highImpact: HighImpactHero,
mediumImpact: MediumImpactHero,
lowImpact: LowImpactHero,
};
export const Hero: React.FC<Page["hero"]> = (props) => {
const { type } = props;
const HeroToRender = heroes[type];
if (!HeroToRender) return null;
return <HeroToRender {...props} />;
};

Xet Storage Details

Size:
539 Bytes
·
Xet hash:
f49472b7bf2cc8895fb5734449ce4bb26410e682eada8662851ec1369c22b83f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.