Something went wrong. Try again.
A social knowledge tool for research trails, built on ATProto semble.so
research-tool social-network tools-for-thought atproto
Something went wrong. Try again.
semble src webapp features collections components createCollectionShortcut CreateCollectionShortcut.tsx
730 B · 25 lines
TSX
at development
1234567891011121314151617181920212223242526import { NavLink } from '@mantine/core';import { Fragment, useState } from 'react';import { BiPlus } from 'react-icons/bi';import CreateCollectionDrawer from '@/features/collections/components/createCollectionDrawer/CreateCollectionDrawer';
export default function CreateCollectionShortcut() { const [isDrawerOpen, setIsDrawerOpen] = useState(false);
return ( <Fragment> <NavLink component="button" label={'Create'} variant="subtle" c="blue" leftSection={<BiPlus size={25} />} onClick={() => setIsDrawerOpen(true)} /> <CreateCollectionDrawer isOpen={isDrawerOpen} onClose={() => setIsDrawerOpen(false)} /> </Fragment> );}