Files
bodyshop/client/src/components/trello-board/index.jsx
Dave Richer 2a51c8a2bf - Checkpoint, so so much
Signed-off-by: Dave Richer <dave@imexsystems.ca>
2024-07-04 18:00:02 -04:00

28 lines
689 B
JavaScript

import React from "react";
import BoardContainer from "./controllers/BoardContainer.jsx";
import Board from "./controllers/Board.jsx";
import { StyleSheetManager } from "styled-components";
import isPropValid from "@emotion/is-prop-valid";
export { BoardContainer };
// Enhanced default export using arrow function for simplicity
const TrelloBoard = ({ ...otherProps }) => {
return (
<StyleSheetManager shouldForwardProp={shouldForwardProp}>
<Board {...otherProps} />
</StyleSheetManager>
);
};
const shouldForwardProp = (propName, target) => {
if (typeof target === "string") {
return isPropValid(propName);
}
return true;
};
export default TrelloBoard;