MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / getDefaultProps

Function getDefaultProps

src/tools/background-studio/backgrounds/index.js:1260–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258
1259export const getBackgroundById = id => BACKGROUNDS.find(bg => bg.id === id);
1260export const getDefaultProps = background => {
1261 if (!background?.props) return {};
1262 return background.props.reduce((acc, prop) => {
1263 acc[prop.name] = prop.default;
1264 return acc;
1265 }, {});
1266};
1267
1268const ANIMATION_IDS = [
1269 'antigravity',

Callers 2

BackgroundStudioFunction · 0.90
useBackgroundStateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected