mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
- Move stores/utils/types to their relative directories (i.e chat stores in chat directory) - Move utility files to shared/utils - Move component files to shared/components - Move type definitions to shared/types - Move stores to shared/stores - Update import paths across the project
19 lines
525 B
TypeScript
19 lines
525 B
TypeScript
import { memo } from 'react';
|
|
import { IconButton } from '~/shared/components/ui/IconButton';
|
|
interface SettingsButtonProps {
|
|
onClick: () => void;
|
|
}
|
|
|
|
export const SettingsButton = memo(({ onClick }: SettingsButtonProps) => {
|
|
return (
|
|
<IconButton
|
|
onClick={onClick}
|
|
icon="i-ph:gear"
|
|
size="xl"
|
|
title="Settings"
|
|
data-testid="settings-button"
|
|
className="text-[#666] hover:text-bolt-elements-textPrimary hover:bg-bolt-elements-item-backgroundActive/10 transition-colors"
|
|
/>
|
|
);
|
|
});
|