mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
parent
88639dfe83
commit
247e14646b
136 changed files with 1395 additions and 516 deletions
18
src/app/(main)/websites/WebsitesHeader.tsx
Normal file
18
src/app/(main)/websites/WebsitesHeader.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue