import React from 'react'; import { useRouter } from 'next/router'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { PColor } from '../../../assets/colors'; interface SearchProps { Text?: string; children?: React.ReactNode; } export const LocationName: React.FC = ({ Text = '', children }) => { const location = useRouter(); const name = location?.pathname; const position = name?.indexOf('/'); return ; }; const Search: React.FC = ({ children, Text }) => { return ( Buscado por   {Text}
{children}
); }; Search.propTypes = { Text: PropTypes.string.isRequired, children: PropTypes.node.isRequired }; const ContainerSearch = styled.div` text-align: start; margin-bottom: 30px; width: 100%; margin: 40px 0; border-bottom: 0.0625em solid #e6e6e6; padding-bottom: 10px; @media only screen and (max-width: 960px) { display: none; } `; const Link = styled.span` font-size: 1.5625rem; color: black; font-family: PFont-Regular; `;