You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
8 months ago
|
import React from 'react';
|
||
|
|
||
|
import { NoFormStyle } from '../form/context';
|
||
|
import { NoCompactStyle } from '../space/Compact';
|
||
|
|
||
|
const getInputAddon = (addon: React.ReactNode): React.ReactNode =>
|
||
|
addon ? (
|
||
|
<NoCompactStyle>
|
||
|
<NoFormStyle override status>
|
||
|
{addon}
|
||
|
</NoFormStyle>
|
||
|
</NoCompactStyle>
|
||
|
) : null;
|
||
|
|
||
|
export default getInputAddon;
|