a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

componentized separator in new file layout.tsx

celine 769bb500 0cf3584a

+4 -4
+1 -4
app/test/TextToolbar.tsx
··· 25 25 } from "components/Icons"; 26 26 import { create } from "zustand"; 27 27 import { combine } from "zustand/middleware"; 28 + import { Separator } from "components/Layout"; 28 29 29 30 type textState = { 30 31 bold: boolean; ··· 353 354 {props.children} 354 355 </button> 355 356 ); 356 - }; 357 - 358 - const Separator = () => { 359 - return <div className="h-6 border-r border-border" />; 360 357 }; 361 358 362 359 const CloseToolbarButton = (props: { onClose: () => void }) => {
+3
components/Layout.tsx
··· 1 + export const Separator = (props: { classname?: string }) => { 2 + return <div className={`h-6 border-r border-border ${props.classname}`} />; 3 + };