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

Function getModeProps

src/demo/Components/FluidGlassDemo.jsx:62–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 };
61
62 const getModeProps = () => {
63 const baseProps = {
64 scale,
65 ior,
66 thickness,
67 chromaticAberration,
68 anisotropy
69 };
70
71 if (mode === 'bar') {
72 return {
73 ...baseProps,
74 transmission,
75 roughness,
76 color: '#ffffff',
77 attenuationColor: '#ffffff',
78 attenuationDistance: 0.25
79 };
80 }
81
82 return baseProps;
83 };
84
85 const propData = useMemo(
86 () => [

Callers 1

FluidGlassDemoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected