create-next-app-template
Version:
This is a template set up to create Next.js App with fast speed and high performance<br/> The current template is provided in a **page routing** structure.<br/>
15 lines (12 loc) • 378 B
text/typescript
import { PositionType } from '../types/piece/PositionType';
const positionStylesProps = (props?: { position?: PositionType }) => {
if (!props) return {};
return {
position: props.position?.type,
top: props?.position?.top,
bottom: props.position?.bottom,
left: props.position?.left,
right: props.position?.right,
};
};
export { positionStylesProps };