mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
feat: add collection list
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import styled from '@emotion/styled';
|
||||
import useActiveCollection from '~/hooks/use_active_collection';
|
||||
|
||||
const CollectionDescriptionStyle = styled.p({
|
||||
fontSize: '0.85em',
|
||||
marginBottom: '0.5em',
|
||||
});
|
||||
|
||||
export default function CollectionDescription() {
|
||||
const { activeCollection } = useActiveCollection();
|
||||
return (
|
||||
activeCollection && (
|
||||
<CollectionDescriptionStyle>
|
||||
{activeCollection?.description}
|
||||
</CollectionDescriptionStyle>
|
||||
)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user