MCPcopy
hub / github.com/fkhadra/react-toastify / getProp

Function getProp

playground/src/components/ContainerCode.tsx:4–15  ·  view source on GitHub ↗
(prop: L, value: R)

Source from the content-addressed store, hash-verified

2import { ToastContainerProps } from '../../../src';
3
4function getProp<L, R>(prop: L, value: R) {
5 return value ? (
6 <div>
7 <span className="code__props">{prop}</span>
8 </div>
9 ) : (
10 <div>
11 <span className="code__props">{prop}</span>
12 {`={false}`}
13 </div>
14 );
15}
16
17export interface ContainerCodeProps extends Partial<ToastContainerProps> {
18 isDefaultProps: boolean;

Callers 1

ContainerCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…