mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
- Add support for multiple share URLs per website with server-generated slugs - Create shares API endpoint for listing and creating website shares - Add SharesTable, ShareEditButton, ShareDeleteButton components - Move share management to website settings, remove header share button - Remove shareId from website update API (now uses separate share table) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
567 B
TypeScript
16 lines
567 B
TypeScript
import { useMessages } from '@/components/hooks';
|
|
import { Edit } from '@/components/icons';
|
|
import { DialogButton } from '@/components/input/DialogButton';
|
|
import { ShareEditForm } from './ShareEditForm';
|
|
|
|
export function ShareEditButton({ shareId }: { shareId: string }) {
|
|
const { formatMessage, labels } = useMessages();
|
|
|
|
return (
|
|
<DialogButton icon={<Edit />} title={formatMessage(labels.share)} variant="quiet" width="600px">
|
|
{({ close }) => {
|
|
return <ShareEditForm shareId={shareId} onClose={close} />;
|
|
}}
|
|
</DialogButton>
|
|
);
|
|
}
|