// Generated with util/create-component.js import React from "react"; import Label from "../Label"; import NsImage from "../shared/ns-image"; import Text from "../UI/Text"; import { EncyclopediaProps } from "./Encyclopedia.types"; const Encyclopedia: React.FC = (props) => { const { data, type, fluid } = props; const { title, categoryKr, thumbnail, ImageWrapper, isVideo = false, isNew = false, } = data; const imageSize = fluid ? "w-full max-w-[16rem] pc:max-w-[27rem]" : "w-[16rem] pc:w-[27rem]"; return (
{isVideo && ( )} {isNew && ( )}
{categoryKr} {isVideo && ( )}
{title.replace(/
/g, "")}
); }; export default Encyclopedia;