mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-05 15:54:39 +00:00
19 lines
594 B
TypeScript
19 lines
594 B
TypeScript
import { ReleaseLink169 } from "./ReleaseLink.16_9FullImage";
|
|
import { ReleaseLink169Poster } from "./ReleaseLink.16_9Poster";
|
|
import { ReleaseLinkPoster } from "./ReleaseLink.Poster";
|
|
|
|
export const ReleaseLink = (props: {type?: "16_9"|"poster"}) => {
|
|
const type = props.type || "16_9";
|
|
|
|
if (type == "16_9") {
|
|
return (
|
|
<>
|
|
<div className="hidden lg:block"><ReleaseLink169 {...props} /></div>
|
|
<div className="block lg:hidden"><ReleaseLink169Poster {...props} /></div>
|
|
</>
|
|
)
|
|
}
|
|
if (type == "poster") {
|
|
return <ReleaseLinkPoster {...props} />;
|
|
}
|
|
};
|