199eb8bf50
* Revert "Temporarily disable the token warning for style fixes" This reverts commit 70722b5e * Move pages around and refactor to better support rendering content outside the app body * Automatically add tokens in the add and remove liquidity pages * Put the warning above the send/swap pages * Add a margin below the token warning cards * Save token warning dismissal state in user state * Linting errors * style fix
14 lines
414 B
TypeScript
14 lines
414 B
TypeScript
import React from 'react'
|
|
|
|
/**
|
|
* Helper type that returns the props type of another component, excluding
|
|
* any of the keys passed as the optional second argument.
|
|
*/
|
|
type PropsOfExcluding<TComponent, TExcludingProps = void> = TComponent extends React.ComponentType<infer P>
|
|
? TExcludingProps extends string | number | symbol
|
|
? Omit<P, TExcludingProps>
|
|
: P
|
|
: unknown
|
|
|
|
export default PropsOfExcluding
|