1- import { Button , chipFilledFillTokens , cn , Tooltip } from '@sim/emcn'
1+ import { Button , cn , Tooltip } from '@sim/emcn'
22import { Ban , Circle , Trash } from '@sim/emcn/icons'
33import { domAnimation , LazyMotion , m } from 'framer-motion'
4+ import { RESOURCE_ACTION_BUTTON_FILLED } from '@/app/workspace/[workspaceId]/components/resource/components/action-bar/action-bar-styles'
45import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
56
6- /** One source of truth for the button chrome, so the three actions read as one control strip. */
7- const ACTION_BUTTON_CLASS = cn (
8- chipFilledFillTokens ,
9- 'hover-hover:text-[var(--text-inverse)]! size-[28px] rounded-lg p-0 hover-hover:bg-[var(--brand-secondary)]'
10- )
11-
127interface ActionBarProps {
138 selectedCount : number
149 onEnable ?: ( ) => void
@@ -97,7 +92,7 @@ export function ActionBar({
9792 aria-label = 'Enable'
9893 onClick = { onEnable }
9994 disabled = { isLoading }
100- className = { ACTION_BUTTON_CLASS }
95+ className = { RESOURCE_ACTION_BUTTON_FILLED }
10196 >
10297 < Circle className = 'size-[12px]' />
10398 </ Button >
@@ -114,7 +109,7 @@ export function ActionBar({
114109 aria-label = 'Disable'
115110 onClick = { onDisable }
116111 disabled = { isLoading }
117- className = { ACTION_BUTTON_CLASS }
112+ className = { RESOURCE_ACTION_BUTTON_FILLED }
118113 >
119114 < Ban className = 'size-[12px]' />
120115 </ Button >
@@ -131,7 +126,7 @@ export function ActionBar({
131126 aria-label = 'Delete'
132127 onClick = { onDelete }
133128 disabled = { isLoading }
134- className = { ACTION_BUTTON_CLASS }
129+ className = { RESOURCE_ACTION_BUTTON_FILLED }
135130 >
136131 < Trash className = 'size-[12px]' />
137132 </ Button >
0 commit comments