mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
18 lines
569 B
TypeScript
18 lines
569 B
TypeScript
import { useMessages, useNavigation } from '@/components/hooks';
|
|
import { WebsiteAddButton } from './WebsiteAddButton';
|
|
import { PageHeader } from '@/components/common/PageHeader';
|
|
|
|
export interface WebsitesHeaderProps {
|
|
allowCreate?: boolean;
|
|
}
|
|
|
|
export function WebsitesHeader({ allowCreate = true }: WebsitesHeaderProps) {
|
|
const { formatMessage, labels } = useMessages();
|
|
const { teamId } = useNavigation();
|
|
|
|
return (
|
|
<PageHeader title={formatMessage(labels.websites)}>
|
|
{allowCreate && <WebsiteAddButton teamId={teamId} />}
|
|
</PageHeader>
|
|
);
|
|
}
|