diff --git a/src/pages/Search/components/Books.tsx b/src/pages/Search/components/Books.tsx index 2eaf2eb..b529b72 100644 --- a/src/pages/Search/components/Books.tsx +++ b/src/pages/Search/components/Books.tsx @@ -1,22 +1,29 @@ +/** @jsxImportSource @emotion/react */ + +import { css } from '@emotion/react'; import styled from '@emotion/styled'; import { commonFlex } from '@styles/common'; +import { Link } from 'react-router-dom'; import { Book } from 'types/books'; export default function Books(props: Book) { const { authors, contents, title, thumbnail } = props; + return ( - - - - {title} - {authors} - {contents} - - +
+ + + + {title} + {authors} + {contents} + + +
); } -const Container = styled.article` +const bookLink = css` ${commonFlex} gap: 4rem; cursor: pointer;