diff --git a/packages/web/components/patterns/HighlightBar.tsx b/packages/web/components/patterns/HighlightBar.tsx
index b1ba39049..ad1aff3f3 100644
--- a/packages/web/components/patterns/HighlightBar.tsx
+++ b/packages/web/components/patterns/HighlightBar.tsx
@@ -32,50 +32,75 @@ type HighlightBarProps = {
}
export function HighlightBar(props: HighlightBarProps): JSX.Element {
- if (props.displayAtBottom) {
- return (
-
-
-
- )
- } else {
- return (
-
-
-
- )
- }
+ return (
+
+
+
+ )
+}
+
+type BarButtonProps = {
+ title: string
+ onClick: VoidFunction
+ iconElement: JSX.Element
+ text: string
+}
+
+function BarButton({ text, title, iconElement, onClick }: BarButtonProps) {
+ return (
+
+ )
}
function BarContent(props: HighlightBarProps): JSX.Element {
@@ -97,139 +122,51 @@ function BarContent(props: HighlightBarProps): JSX.Element {
}}
>
{props.isNewHighlight ? (
- }
onClick={() => props.handleButtonClick('create')}
- css={{
- flexDirection: 'column',
- height: '100%',
- m: 0,
- p: 0,
- alignItems: 'baseline',
- }}
- >
-
-
-
- Highlight
-
-
-
+ />
) : (
<>
-
+ }
+ onClick={() => props.handleButtonClick('delete')}
+ />
-
-
+ }
+ onClick={() => props.handleButtonClick('setHighlightLabels')}
+ />
>
)}
-
+ }
+ onClick={() => props.handleButtonClick('comment')}
+ />
-
- {/*
- */}
+ }
+ onClick={() => props.handleButtonClick('copy')}
+ />
)
}