mirror of
https://github.com/SomboChea/ui
synced 2024-09-28 20:37:47 +07:00
19 lines
534 B
TypeScript
19 lines
534 B
TypeScript
|
import React from 'react';
|
||
|
import Search from '@material-ui/icons/Search';
|
||
|
import styled from '@emotion/styled';
|
||
|
|
||
|
import InputAdornment from '../../muiComponents/InputAdornment';
|
||
|
import { Theme } from '../../design-tokens/theme';
|
||
|
|
||
|
const StyledInputAdornment = styled(InputAdornment)<{ theme?: Theme }>(props => ({
|
||
|
color: props.theme && props.theme.palette.white,
|
||
|
}));
|
||
|
|
||
|
const SearchAdornment: React.FC = () => (
|
||
|
<StyledInputAdornment position={'start'}>
|
||
|
<Search />
|
||
|
</StyledInputAdornment>
|
||
|
);
|
||
|
|
||
|
export default SearchAdornment;
|