AniX/app/components/ReleaseLink/ReleaseLink.tsx
Kentai Radiquum e548ce060d
refactor: Release page
factor it in separate components and update grid styling
2024-07-31 20:21:32 +05:00

13 lines
364 B
TypeScript

import { ReleaseLink169 } from "./ReleaseLink.16_9";
import { ReleaseLinkPoster } from "./ReleaseLink.Poster";
export const ReleaseLink = (props: {type?: "16_9"|"poster"}) => {
const type = props.type || "16_9";
if (type == "16_9") {
return <ReleaseLink169 {...props} />;
}
if (type == "poster") {
return <ReleaseLinkPoster {...props} />;
}
};