mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: add validation for search modal
This commit is contained in:
29
inertia/components/dashboard/search/no_search_result.tsx
Normal file
29
inertia/components/dashboard/search/no_search_result.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import styled from '@emotion/styled';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { FcGoogle } from 'react-icons/fc';
|
||||
|
||||
const NoSearchResultStyle = styled.i({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
gap: '0.25em',
|
||||
|
||||
'& > span': {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
},
|
||||
});
|
||||
|
||||
export default function NoSearchResult() {
|
||||
const { t } = useTranslation('common');
|
||||
return (
|
||||
<NoSearchResultStyle>
|
||||
{t('search-with')}
|
||||
{''}
|
||||
<span>
|
||||
<FcGoogle size={20} />
|
||||
oogle
|
||||
</span>
|
||||
</NoSearchResultStyle>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user