Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user